-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
49 lines (48 loc) · 1.16 KB
/
eslint.config.js
File metadata and controls
49 lines (48 loc) · 1.16 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
45
46
47
48
49
import js from "@eslint/js";
import globals from "globals";
import prettier from "eslint-config-prettier";
export default [
js.configs.recommended,
{
files: ["**/*.js", "**/*.mjs"],
languageOptions: {
ecmaVersion: "latest",
sourceType: "module",
globals: {
...globals.node,
...globals.browser
}
},
rules: {
"no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_"
}
],
"no-const-assign": "error",
"no-debugger": "error",
"no-unreachable": "error",
curly: ["error", "all"],
eqeqeq: ["error", "always"],
"guard-for-in": "error",
"no-empty": "error",
"no-eval": "error",
"no-floating-decimal": "error",
"no-new-wrappers": "error",
"no-param-reassign": "error",
"no-proto": "error",
"no-script-url": "error",
"no-throw-literal": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-void": "error",
"no-with": "error",
"prefer-const": "error",
strict: ["error", "global"],
yoda: "error"
}
},
prettier
];