-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy patheslint.config.js
More file actions
44 lines (43 loc) · 1.19 KB
/
eslint.config.js
File metadata and controls
44 lines (43 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import js from "@eslint/js";
import globals from "globals";
import eslintConfigPrettier from "eslint-config-prettier/flat";
export default [
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.browser,
...globals.commonjs,
...globals.es2015,
...globals.node
}
}
},
{
rules: {
indent: "warn",
"linebreak-style": "warn",
semi: "warn",
"no-extra-semi": "warn",
"no-undef": "warn",
"no-unused-vars": "warn",
"no-empty": "warn",
"no-redeclare": "warn",
"no-prototype-builtins": "warn",
"no-global-assign": "warn",
"no-constant-binary-expression": "warn",
"no-func-assign": "warn",
"no-useless-escape": "warn",
"no-useless-catch": "warn",
"no-constant-condition": "warn",
"new-cap": "off",
"no-console": "off"
}
},
{
ignores: ["**/dist/*", "source/libs/*"]
},
eslintConfigPrettier
];