Skip to content

Commit 40cb730

Browse files
committed
fix: do not use ts-ignore
1 parent b69272a commit 40cb730

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/configs/all.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
const { allRulesConfig } = require("./_commons")
88
const recommendeConfig = require("./recommended")
99

10+
/**
11+
* https://eslint.org/docs/latest/use/configure/configuration-files-new
12+
* @type {import('eslint').Linter.FlatConfig}
13+
*/
1014
exports.flat = {
1115
name: "node/flat/all",
12-
languageOptions: recommendeConfig.flat.languageOptions,
16+
languageOptions: recommendeConfig.flat.languageOptions ?? {},
1317
rules: allRulesConfig,
1418
}

lib/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)