@@ -7,17 +7,26 @@ import { FlatCompat } from "@eslint/eslintrc";
7
7
8
8
const __filename = fileURLToPath ( import . meta. url ) ;
9
9
const __dirname = path . dirname ( __filename ) ;
10
+
10
11
const compat = new FlatCompat ( {
11
12
baseDirectory : __dirname ,
12
13
recommendedConfig : js . configs . recommended ,
13
14
allConfig : js . configs . all
14
15
} ) ;
15
16
16
- export default [ ...compat . extends ( "plugin:github/recommended" ) , {
17
+ export default [ ...compat . config ( {
18
+ extends : "plugin:github/recommended" ,
19
+ ignorePatterns : [ 'eslint.config.mjs' , '.markdownlint-cli2.cjs' ] ,
20
+ rules : {
21
+ "import/no-commonjs" : "off" ,
22
+ "filenames/match-regex" : "off" ,
23
+ "i18n-text/no-en" : "off" ,
24
+ } ,
25
+ } ) , {
17
26
plugins : {
18
27
github,
19
28
} ,
20
-
29
+ ignores : [ 'eslint.config.mjs' , '.markdownlint-cli2.cjs' ] ,
21
30
languageOptions : {
22
31
globals : {
23
32
...globals . node ,
@@ -33,6 +42,4 @@ export default [...compat.extends("plugin:github/recommended"), {
33
42
"filenames/match-regex" : "off" ,
34
43
"i18n-text/no-en" : "off" ,
35
44
} ,
36
-
37
- ignores : [ '**/.markdownlint-cli2.cjs' ] ,
38
45
} ] ;
0 commit comments