Skip to content

Commit 0da31f8

Browse files
fix
1 parent b69816a commit 0da31f8

File tree

4 files changed

+72
-24
lines changed

4 files changed

+72
-24
lines changed
File renamed without changes.

eslint.config.mjs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import github from "eslint-plugin-github";
2+
import globals from "globals";
3+
import path from "node:path";
4+
import { fileURLToPath } from "node:url";
5+
import js from "@eslint/js";
6+
import { FlatCompat } from "@eslint/eslintrc";
7+
8+
const __filename = fileURLToPath(import.meta.url);
9+
const __dirname = path.dirname(__filename);
10+
const compat = new FlatCompat({
11+
baseDirectory: __dirname,
12+
recommendedConfig: js.configs.recommended,
13+
allConfig: js.configs.all
14+
});
15+
16+
export default [...compat.extends("plugin:github/recommended"), {
17+
plugins: {
18+
github,
19+
},
20+
21+
languageOptions: {
22+
globals: {
23+
...globals.node,
24+
...globals.jest,
25+
},
26+
27+
ecmaVersion: 2020,
28+
sourceType: "commonjs",
29+
},
30+
31+
rules: {
32+
"import/no-commonjs": "off",
33+
"filenames/match-regex": "off",
34+
"i18n-text/no-en": "off",
35+
},
36+
}];

package-lock.json

Lines changed: 33 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,11 @@
1616
"lodash": "^4.17.15"
1717
},
1818
"devDependencies": {
19+
"@eslint/eslintrc": "^3.2.0",
20+
"@eslint/js": "^9.16.0",
1921
"eslint": "^9.16.0",
2022
"eslint-plugin-github": "^5.0.1",
23+
"globals": "^15.13.0",
2124
"jest": "^29.5.0",
2225
"markdownlint": "^0.36.1",
2326
"markdownlint-cli2": "^0.15.0"

0 commit comments

Comments
 (0)