-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
55 lines (52 loc) · 1.42 KB
/
eslint.config.js
File metadata and controls
55 lines (52 loc) · 1.42 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
50
51
52
53
54
// eslint.config.mjs
import globals from "globals";
export default [
{
files: ["**/*.js"],
languageOptions: {
ecmaVersion: 9,
sourceType: "module",
globals: {
...globals.browser,
}
},
linterOptions: {
reportUnusedDisableDirectives: true
},
rules: {
"no-bitwise": "error",
"camelcase": "error",
"curly": "error",
"eqeqeq": ["error", "always"],
"guard-for-in": "error",
"no-extend-native": "error",
"wrap-iife": ["error", "inside"],
"no-use-before-define": ["error", { "functions": true, "variables": true }],
"new-cap": "error",
"no-caller": "error",
"no-empty": "error",
"no-irregular-whitespace": "error",
"no-new": "error",
"no-plusplus": "off",
"quotes": ["error", "double"],
"no-undef": "error",
"no-unused-vars": ["error", { "vars": "all", "args": "after-used" }],
"strict": ["error", "function"],
"max-len": ["error", { "code": 100 }],
"no-var": "error",
"semi": ["error", "always"],
"no-eq-null": "error",
"no-eval": "error",
"no-new-func": "error",
"no-extra-semi": "error",
"no-loop-func": "off",
"no-multi-str": "error",
"no-shadow": "error",
"dot-notation": "error",
"no-script-url": "error",
"valid-typeof": "error",
"no-proto": "error",
"no-labels": "error"
}
}
];