-
Notifications
You must be signed in to change notification settings - Fork 425
/
.eslintrc
40 lines (40 loc) · 1.15 KB
/
.eslintrc
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
{
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"no-console": "off",
"no-use-before-define": ["error", { "functions": false }],
"func-names": ["off"],
"complexity": ["error", 26],
"curly": ["error", "all"],
"dot-location": ["error", "property"],
"dot-notation": ["error"],
"eqeqeq": ["error", "always"],
"guard-for-in": "error",
"no-alert": "error",
"no-script-url": "error",
"no-proto": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-invalid-this": "error",
"no-implied-eval": "error",
"no-implicit-globals": "error",
"no-shadow": "error",
"global-require": "error",
"comma-dangle": ["error", "never"],
"camelcase": ["error", { "properties": "always" }],
"no-prototype-builtins": "off"
},
"env": {
"amd": true,
"es6": true,
"browser": true,
"node": true
},
"globals": {
"globalThis": false
}
}