-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
70 lines (70 loc) · 1.55 KB
/
.eslintrc.json
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"env": {
"browser": true,
"es2022": true,
"webextensions": true
},
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:unicorn/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
},
"plugins": [
"unicorn",
"unused-imports"
],
"rules": {
"arrow-body-style": "error",
"arrow-parens": "error",
"block-scoped-var": "error",
"camelcase": [
"error",
{
"properties": "never"
}
],
"class-methods-use-this": "error",
"consistent-return": "error",
"curly": [
"error",
"multi-line"
],
"eqeqeq": "error",
"no-alert": "error",
"no-confusing-arrow": "error",
"no-console": "error",
"no-duplicate-imports": "error",
"no-else-return": "error",
"no-implicit-globals": "error",
"no-unused-vars": "off",
"no-use-before-define": [
"error",
"nofunc"
],
"no-var": "error",
"unicorn/better-regex": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-optional-catch-binding": "off",
"unicorn/prefer-spread": "off",
"unicorn/prefer-top-level-await": "off",
"unicorn/prevent-abbreviations": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "^_",
"vars": "all",
"varsIgnorePattern": "^_"
}
]
}
}