File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 7
7
const { allRulesConfig } = require ( "./_commons" )
8
8
const recommendeConfig = require ( "./recommended" )
9
9
10
+ /**
11
+ * https://eslint.org/docs/latest/use/configure/configuration-files-new
12
+ * @type {import('eslint').Linter.FlatConfig }
13
+ */
10
14
exports . flat = {
11
15
name : "node/flat/all" ,
12
- languageOptions : recommendeConfig . flat . languageOptions ,
16
+ languageOptions : recommendeConfig . flat . languageOptions ?? { } ,
13
17
rules : allRulesConfig ,
14
18
}
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ const configs = {
43
43
{ files : [ "**/*.mjs" ] , plugins : { n : base } , ...esmConfig . flat } ,
44
44
{ files : [ "**/*.cjs" ] , plugins : { n : base } , ...cjsConfig . flat } ,
45
45
] ,
46
- // @ts -ignore -- tsc warns incompatible languageOptions, but it's fine
47
46
"flat/all" : { plugins : { n : base } , ...allRulesConfig . flat } ,
48
47
}
49
48
You can’t perform that action at this time.
0 commit comments