2.2.0 • Published 2 months ago

@sikt/eslint-config-sds v2.2.0

Weekly downloads
-
License
UNLICENSED
Repository
gitlab
Last release
2 months ago

@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 eslint.config.mjs:

import sdsConfig from "@sikt/eslint-config-sds";

export default [
  ...sdsConfig,
  // ...other configs
];

If typescript-eslint is unable to find the right tsconfig.json, you may also need to configure tsconfigRootDir.

{
  languageOptions: {
    parserOptions: {
      tsconfigRootDir: import.meta.dirname,
    },
  },
},

You may get a warning if you are linting files that are not covered by your tsconfig.json file. You can solve this by including them in the TypeScript config, excluding the files from linting or by conditionally disabling typechecking by extending from tseslint.configs.disableTypeChecked by using overrides.