This package provides eclass eslint shareable config for typescript.
- eslint-config-prettier
- eslint-config-standard
- eslint-plugin-import
- eslint-plugin-node
- eslint-plugin-prettier
- eslint-plugin-promise
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
Install eslint
and this package with npm.
npm i -D eslint @eclass/eslint-config-typescript eslint-config-{prettier,standard} eslint-plugin-{array-func,eslint-comments,import,node,prettier,promise,security,sonarjs,standard} @typescript-eslint/{eslint-plugin,parser} prettier
Then add the following configuration to your project's package.json
.
"eslintConfig": {
"extends": "@eclass/eslint-config-typescript"
}
"eslintConfig": {
"extends": "@eclass/eslint-config-typescript/requiring-type-checking"
}