|
22 | 22 | "@typescript-eslint", |
23 | 23 | "eslint-plugin-import", |
24 | 24 | "eslint-plugin-jsdoc", |
25 | | - "etc" |
| 25 | + "etc", |
| 26 | + "sonarjs" |
26 | 27 | ], |
27 | 28 | "extends": [ |
28 | 29 | "eslint:recommended", |
29 | 30 | "plugin:@typescript-eslint/recommended", |
30 | 31 | "plugin:@typescript-eslint/recommended-requiring-type-checking", |
31 | 32 | "plugin:etc/recommended", |
32 | | - "plugin:import/typescript" |
| 33 | + "plugin:import/typescript", |
| 34 | + "plugin:sonarjs/recommended" |
33 | 35 | ], |
34 | 36 | "overrides": [{ |
35 | 37 | "files": "*.ts?(x)", |
|
153 | 155 | "func-style": ["error", "declaration", { "allowArrowFunctions": true }], |
154 | 156 | "import/newline-after-import": "error", |
155 | 157 | "import/no-absolute-path": "error", |
156 | | - "import/no-cycle": ["error", { "ignoreExternal": true }], |
| 158 | + "import/no-cycle": ["error", { |
| 159 | + "allowUnsafeDynamicCyclicDependency": true, |
| 160 | + "ignoreExternal": true |
| 161 | + }], |
157 | 162 | "import/no-duplicates": "error", |
158 | 163 | "import/no-import-module-exports": "error", |
159 | 164 | "import/no-namespace": "error", |
|
170 | 175 | }], |
171 | 176 | "jsdoc/check-alignment": "error", |
172 | 177 | "jsdoc/check-indentation": ["error", { "excludeTags": ["example", "param", "returns"] }], |
173 | | - "jsdoc/newline-after-description": "error", |
174 | | - "jsx-quotes": "error", |
| 178 | + "jsdoc/tag-lines": ["error", "any", { "startLines": 1 }], |
175 | 179 | "keyword-spacing": "error", |
176 | 180 | "linebreak-style": "error", |
177 | 181 | "max-classes-per-file": ["error", 1], |
|
212 | 216 | "radix": "error", |
213 | 217 | "rest-spread-spacing": "error", |
214 | 218 | "semi-spacing": "error", |
| 219 | + "sonarjs/cognitive-complexity": "off", |
| 220 | + "sonarjs/no-duplicate-string": "off", |
| 221 | + "sonarjs/no-inverted-boolean-check": "error", |
215 | 222 | "sort-keys": "error", |
216 | 223 | "space-before-blocks": "error", |
217 | 224 | "space-in-parens": "error", |
|
0 commit comments