Skip to content

Commit fb0d0aa

Browse files
committed
Convert to flat config
1 parent d17a8b0 commit fb0d0aa

File tree

4 files changed

+271
-262
lines changed

4 files changed

+271
-262
lines changed

.eslintrc.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

eslint.config.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import github from "eslint-plugin-github";
2+
import globals from "globals";
3+
4+
export default [
5+
github.getFlatConfigs().recommended,
6+
{
7+
languageOptions: {
8+
ecmaVersion: 13,
9+
globals: {
10+
...globals.es6,
11+
...globals.node,
12+
...globals.jest,
13+
},
14+
},
15+
files: ["**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}"],
16+
rules: {
17+
"github/filenames-match-regex": "off",
18+
"i18n-text/no-en": "off",
19+
"import/extensions": ["error", { js: "ignorePackages" }],
20+
"import/no-unresolved": [
21+
"error",
22+
{
23+
ignore: ["^markdownlint/.+"],
24+
},
25+
],
26+
},
27+
},
28+
];

0 commit comments

Comments
 (0)