ESLint Sharable Rules in TypeScript Standard Style
- Install
@chatie/eslint-config
npm install --save-dev @chatie/eslint-config
- It will automatically generate a
.eslintrc.js
for you (if there's no such file before)
It will contains the following content:
module.exports = {
extends: '@chatie',
}
./node_modules/.bin/eslint
eslint
will work and follow the @chatie rules.
- ESLint Shareable Configs
- Using ESLint with TypeScript in 2019
- From TSLint to ESLint, or How I Learned to Lint GraphQL Code
- Roadmap: TSLint -> ESLint #4534
- Roadmap: tslint-microsoft-contrib -> ESLint #876
- The future of TypeScript on ESLint
- ESLint Plugin TSLint
Add the following config to .vscode/settings.json
to enable linting TypeScript files:
"eslint.validate": [
"javascript",
"typescript",
],
- Sep 18: Clean TSLint...
- Enforce Common JS (#54)
- Upgrade ESLint
- Update dependencies to latest.
- Support
Nullish coalescing operator (??)
- Add rule no-floating-promises
- Add rule set (recommended) from eslint-plugin-promise
- Add dependence of file-name-linter to lint file names.
- Add dependence of markdownlint-cli to lint markdown.
- Auto generate
.eslintrc.js
in the project root directory after install if it not exists. - First beta
- Converted tsling.json to .eslintrc.js with the JavaScript Standard Style.
Huan LI (李卓桓) [email protected]
- Code & Docs © 2019 - now Huan LI [email protected]
- Code released under the Apache-2.0 License
- Docs released under Creative Commons