Skip to content

Commit 35a11b2

Browse files
fix
1 parent 47dc01a commit 35a11b2

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

eslint.config.mjs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,26 @@ import { FlatCompat } from "@eslint/eslintrc";
77

88
const __filename = fileURLToPath(import.meta.url);
99
const __dirname = path.dirname(__filename);
10+
1011
const compat = new FlatCompat({
1112
baseDirectory: __dirname,
1213
recommendedConfig: js.configs.recommended,
1314
allConfig: js.configs.all
1415
});
1516

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+
}), {
1726
plugins: {
1827
github,
1928
},
20-
29+
ignores: ['eslint.config.mjs', '.markdownlint-cli2.cjs'],
2130
languageOptions: {
2231
globals: {
2332
...globals.node,
@@ -33,6 +42,4 @@ export default [...compat.extends("plugin:github/recommended"), {
3342
"filenames/match-regex": "off",
3443
"i18n-text/no-en": "off",
3544
},
36-
37-
ignores: ['**/.markdownlint-cli2.cjs'],
3845
}];

0 commit comments

Comments
 (0)