@sikt/eslint-config-sds

1.0.0 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @sikt/eslint-config-sds

Weekly Downloads

268

Version

1.0.0

License

UNLICENSED

Unpacked Size

4.63 kB

Total Files

4

Last publish

Collaborators

  • andreassolberg
  • 42tte
  • andreassolberg2