@@ -4,6 +4,7 @@ import eslint from "@eslint/js";
4
4
import eslintPluginImportX from "eslint-plugin-import-x" ;
5
5
import perfectionist from "eslint-plugin-perfectionist" ;
6
6
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended" ;
7
+ import { configs as sonarjs } from "eslint-plugin-sonarjs" ;
7
8
import tseslint , { configs } from "typescript-eslint" ;
8
9
9
10
/* -------------------------------------------------------------------------- */
@@ -14,7 +15,6 @@ const ignores = ["**/index.js", "**/index.d.ts"],
14
15
parserOptions = { projectService, tsconfigRootDir } ,
15
16
languageOptions = { parserOptions } ,
16
17
rules : FlatConfig . Rules = {
17
- "@typescript-eslint/no-shadow" : "error" ,
18
18
"@typescript-eslint/no-use-before-define" : "error" ,
19
19
"import-x/no-extraneous-dependencies" : [
20
20
"error" ,
@@ -23,7 +23,6 @@ const ignores = ["**/index.js", "**/index.d.ts"],
23
23
optionalDependencies : false ,
24
24
} ,
25
25
] ,
26
- "no-shadow" : "off" ,
27
26
"no-use-before-define" : "off" ,
28
27
} ;
29
28
@@ -38,6 +37,8 @@ export default tseslint.config(
38
37
eslintPluginImportX . flatConfigs . typescript ,
39
38
configs . strictTypeChecked ,
40
39
configs . stylisticTypeChecked ,
40
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
41
+ sonarjs . recommended ,
41
42
perfectionist . configs [ "recommended-natural" ] ,
42
43
eslintPluginPrettierRecommended ,
43
44
) ;
0 commit comments