-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
96 lines (96 loc) · 2.23 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"extends": "next/core-web-vitals",
"globals": {
"browser": true
},
"rules": {
"accessor-pairs": "off",
"array-bracket-spacing": ["warn", "never"],
"array-callback-return": "off",
"brace-style": [
"warn",
"stroustrup",
{
"allowSingleLine": false
}
],
"comma-dangle": ["error", "never"],
"computed-property-spacing": ["warn", "never"],
"dot-notation": "off",
"eqeqeq": "off",
"indent": [
"error",
4,
{
"SwitchCase": 1,
"ignoredNodes": ["TemplateLiteral"]
}
],
"key-spacing": [
"warn",
{
"multiLine": {
"afterColon": true,
"align": "colon",
"beforeColon": true
},
"singleLine": {
"afterColon": true,
"beforeColon": true
}
}
],
"linebreak-style": ["error", "unix"],
"multiline-ternary": "off",
"new-cap": [
"warn",
{
"capIsNew": false,
"newIsCap": false,
"properties": false
}
],
"no-duplicate-imports": "error",
"no-extra-boolean-cast": "off",
"no-inner-declarations": "off",
"no-mixed-operators": "off",
"no-multi-spaces": "off",
"no-new-func": "off",
"no-new-wrappers": "off",
"no-prototype-builtins": "off",
"no-restricted-globals": ["error", "event", "describe"],
"no-return-assign": "off",
"no-trailing-spaces": "warn",
"no-unmodified-loop-condition": "off",
"no-unused-expressions": "off",
"no-use-before-define": "off",
"node/no-callback-literal": "off",
"object-curly-spacing": ["warn", "always"],
"one-var": "off",
"padded-blocks": "off",
"prefer-const": "warn",
"prefer-promise-reject-errors": "off",
"prefer-regex-literals": "off",
"quotes": [
"warn",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"semi": ["error", "always"],
"space-before-function-paren": ["warn", "never"],
"spaced-comment": "off",
"standard/no-callback-literal": "off",
"template-curly-spacing": "off",
"yoda": [
"error",
"never",
{
"onlyEquality": true
}
],
"n/no-callback-literal": "off"
}
}