eslint-config for TypeScript projects
- get the package from npm
$ npm install @ts-all/eslint-config -D
- just extends it in your eslint config file eg.
.eslintrc.json
{
// ...
"extends": [
// ...
"@ts-all"
// ...
]
// ...
}
- linting
$ npx eslint ./ --ext .ts --ext .js
- eslint @
8.10.0
- @typescript-eslint/parser @
5.14.0
- @typescript-eslint/eslint-plugin @
5.8.0
- eslint-plugin-import @
2.25.4
- eslint-plugin-jsdoc @
37.9.7
- eslint-plugin-sonarjs @
0.12.0
- eslint-plugin-unicorn @
41.0.0