-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
62 lines (62 loc) · 2.23 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": ["lodash"],
"extends": ["eslint:recommended"],
"env": {
"browser": true,
"node": true,
"es6": true,
"commonjs": true
},
"settings": {
"lodash/pragma": "_"
},
"rules": {
"no-undef": "off",
"no-unused-vars": "off",
"no-useless-escape": "off",
"no-console": "off",
"no-control-regex": "off",
"no-prototype-builtins": "off",
"no-irregular-whitespace": ["error", { "skipComments": true }],
"no-template-curly-in-string": "error",
"require-atomic-updates": "error",
"curly": "error",
"no-extend-native": "warn",
"no-floating-decimal": "error",
"no-undef-init": "error",
"array-bracket-spacing": "error",
"brace-style": "error",
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-unneeded-ternary": "error",
"no-whitespace-before-property": "error",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var", "block-like"] },
{ "blankLine": "always", "prev": ["for", "do", "while"], "next": "*" },
{ "blankLine": "always", "prev": "*", "next": ["for", "do", "while"] },
{ "blankLine": "always", "prev": "if", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "if" },
{ "blankLine": "always", "prev": "switch", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "switch" },
{ "blankLine": "always", "prev": "try", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "try" },
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "expression", "next": ["const", "let", "var"] }
],
"semi-spacing": "error",
"semi-style": "error",
"space-before-blocks": "error",
"spaced-comment": "off",
"no-confusing-arrow": "error",
"no-duplicate-imports": "error",
"prefer-const": "error",
"max-len": ["error", { "code": 130, "tabWidth": 4, "ignoreComments": true, "ignoreStrings": true }]
}
}