|
1 | 1 | { |
2 | 2 | "root": true, |
3 | 3 | "parser": "@typescript-eslint/parser", |
4 | | - "plugins": [ |
5 | | - "security", |
6 | | - "@typescript-eslint" |
7 | | - ], |
| 4 | + "plugins": ["sonarjs", "simple-import-sort", "jsdoc"], |
8 | 5 | "parserOptions": { |
9 | | - "ecmaVersion": 2018, // Allows for the parsing of modern ECMAScript features |
10 | | - "sourceType": "module" // Allows for the use of imports |
| 6 | + "ecmaVersion": "latest", |
| 7 | + "sourceType": "module" |
11 | 8 | }, |
12 | 9 | "ignorePatterns": ["./node_modules/*"], |
13 | 10 | "extends": [ |
14 | 11 | "eslint:recommended", |
15 | | - "plugin:security/recommended", |
16 | 12 | "plugin:@typescript-eslint/recommended", |
17 | | - "plugin:@typescript-eslint/eslint-recommended" |
| 13 | + "plugin:sonarjs/recommended", |
| 14 | + "plugin:jsdoc/recommended-typescript" |
18 | 15 | ], |
19 | 16 | "rules": { |
20 | 17 | "no-error-on-unmatched-pattern": "off", |
21 | | - "@typescript-eslint/no-explicit-any": "off", // TODO: Remove this. |
22 | | - "no-return-await": "off", |
23 | | - "no-shadow": "off", |
24 | | - "@typescript-eslint/no-shadow": ["error"] |
| 18 | + "@typescript-eslint/no-explicit-any": "warn", |
| 19 | + "sonarjs/cognitive-complexity": "off", |
| 20 | + "@typescript-eslint/no-shadow": ["error"], |
| 21 | + "@typescript-eslint/ban-ts-comment": "off", |
| 22 | + "simple-import-sort/imports": "warn", |
| 23 | + "jsdoc/no-types": "off", |
| 24 | + "jsdoc/tag-lines": "off", |
| 25 | + "jsdoc/require-returns-description": "off" |
25 | 26 | } |
26 | 27 | } |
0 commit comments