Skip to content

Commit 0dfdbb3

Browse files
committed
Add ESLint
1 parent 0e7ce7e commit 0dfdbb3

File tree

4 files changed

+1166
-4
lines changed

4 files changed

+1166
-4
lines changed

eslint.config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import globals from "globals";
2+
import pluginJs from "@eslint/js";
3+
import { globalIgnores } from "eslint/config";
4+
import e18e from "@e18e/eslint-plugin";
5+
6+
export default [
7+
{
8+
files: ["statics/js/**/*.js"],
9+
languageOptions: {
10+
globals: globals.browser,
11+
},
12+
},
13+
{ languageOptions: { globals: globals.node } },
14+
pluginJs.configs.recommended,
15+
e18e.configs.recommended,
16+
globalIgnores(["public/"]),
17+
];

0 commit comments

Comments
 (0)