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 77const { allRulesConfig } = require ( "./_commons" )
88const recommendeConfig = require ( "./recommended" )
99
10+ /**
11+ * https://eslint.org/docs/latest/use/configure/configuration-files-new
12+ * @type {import('eslint').Linter.FlatConfig }
13+ */
1014exports . flat = {
1115 name : "node/flat/all" ,
12- languageOptions : recommendeConfig . flat . languageOptions ,
16+ languageOptions : recommendeConfig . flat . languageOptions ?? { } ,
1317 rules : allRulesConfig ,
1418}
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ const configs = {
4343 { files : [ "**/*.mjs" ] , plugins : { n : base } , ...esmConfig . flat } ,
4444 { files : [ "**/*.cjs" ] , plugins : { n : base } , ...cjsConfig . flat } ,
4545 ] ,
46- // @ts -ignore -- tsc warns incompatible languageOptions, but it's fine
4746 "flat/all" : { plugins : { n : base } , ...allRulesConfig . flat } ,
4847}
4948
You can’t perform that action at this time.
0 commit comments