eslint-config
ESLint Sharable Rules in TypeScript Standard Style
USAGE
- 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',
}
3. You are All Set
./node_modules/.bin/eslint
eslint
will work and follow the @chatie rules.
STYLES
SEE ALSO
- ESLint Shareable Configs
- Using ESLint with TypeScript in 2019
- From TSLint to ESLint, or How I Learned to Lint GraphQL Code
tslint -> eslint
- Roadmap: tslint-microsoft-contrib -> ESLint #876
- The future of TypeScript on ESLint
- ESLint Plugin TSLint
FAQ
vscode
not linting TypeScript files at all
1. Add the following config to .vscode/settings.json
to enable linting TypeScript files:
"eslint.validate": [
"javascript",
"typescript",
],
HISTORY
master
v0.6 (08 Jun 2019)
- Auto generate
.eslintrc.yaml
in the project root directory after install if it not exists. - First beta
v0.0.1 (07 Jun 2019)
- Converted tsling.json to .eslintrc.js with the JavaScript Standard Style.
AUTHOR
COPYRIGHT & LICENSE
- Code & Docs © 2019 - now Huan LI zixia@zixia.net
- Code released under the Apache-2.0 License
- Docs released under Creative Commons