@sikt/eslint-config-sds
v1.1.0
Published
The config includes a strict but sensible set of ESLint rules, including the following plugins:
Downloads
1,089
Readme
@sikt/eslint-config-sds
The config includes a strict but sensible set of ESLint rules, including the following plugins:
The TypeScript ESLint plugin has typechecking enabled with both strict and stylistic rulesets.
Consume
npm i -D @sikt/eslint-config-sds
Extend
In .eslintrc.js
:
"eslintConfig": {
"extends": ["@sikt/eslint-config-sds"]
}
If your tsconfig.json
is not in the same folder as your ESLint configuration file, you may also need to configure that.
{
"parserOptions": {
"project": ["./path/to/tsconfig.json"]
}
}
If you are linting files that are not covered by your tsconfig.json
file, you may get a warning. You can solve this by including them in the TypeScript config, excluding the files from linting or by conditionally disabling typechecking by extending from plugin:@typescript-eslint/disable-type-checked
by using overrides.