-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
75 lines (75 loc) · 1.95 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
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"extends": "gatsby-standard",
"plugins": ["prefer-arrow"],
"rules": {
"no-unsafe-finally": "off",
"camelcase": "error",
"comma-dangle": "off",
"curly": "error",
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"guard-for-in": "error",
"id-blacklist": [
"error",
"any",
"Number",
"number",
"String",
"string",
"Boolean",
"boolean",
"Undefined",
"undefined"
],
"id-match": "error",
"max-len": [
"error",
{
"code": 140
}
],
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "warn",
"no-debugger": "error",
"no-empty": "error",
"no-eval": "error",
"no-fallthrough": "error",
"no-multiple-empty-lines": "off",
"no-new-wrappers": "error",
"no-redeclare": "error",
"no-shadow": [
"error",
{
"hoist": "all"
}
],
"no-trailing-spaces": "error",
"no-underscore-dangle": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-var": "error",
"prefer-arrow/prefer-arrow-functions": [
"warn",
{
"disallowPrototype": true,
"singleReturnOnly": true,
"classPropertiesAllowed": true
}
],
"quote-props": ["error", "as-needed"],
"radix": "error",
"spaced-comment": "error",
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"asyncArrow": "never",
"named": "never"
}
],
"use-isnan": "error"
}
}