This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
115 lines (111 loc) · 2.73 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"env": {
"es6": true,
"node": true,
"jasmine": true,
"atomtest": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2018,
"ecmaFeatures": {
"impliedStrict": true
}
},
"globals": {
"atom": false,
"snapshotResult": false
},
"extends": "eslint:recommended",
"rules": {
"valid-jsdoc": 1,
"block-scoped-var": 2,
"curly": 2,
"default-case": 2,
"dot-location": [2, "property"],
"eqeqeq": [2, "always", {"null": "ignore"}],
"no-console": 1,
"no-debugger": 1,
"no-else-return": 1,
"no-eval": 2,
"no-loop-func": 1,
"no-multi-spaces": 1,
"no-unused-expressions": 1,
"no-unused-vars": 1,
"no-warning-comments": 1,
"no-with": 2,
"require-await": 2,
"strict": 1,
"no-restricted-globals": [
"error",
{
"name": "fit",
"message": "Do not commit focused tests."
},
{
"name": "ffit",
"message": "Do not commit focused tests."
},
{
"name": "fffit",
"message": "Do not commit focused tests."
},
{
"name": "fdescribe",
"message": "Do not commit focused tests."
},
{
"name": "ffdescribe",
"message": "Do not commit focused tests."
},
{
"name": "fffdescribe",
"message": "Do not commit focused tests."
}
],
"no-shadow": 1,
"no-undef": 2,
"no-undefined": 2,
"no-use-before-define": 2,
"no-sync": 1,
"array-bracket-spacing": 2,
"block-spacing": 2,
"brace-style": [2, "1tbs"],
"comma-spacing": 2,
"comma-style": 2,
"computed-property-spacing": 2,
"eol-last": 1,
"func-call-spacing": 2,
"indent": ["error", "tab", {"SwitchCase": 1}],
"key-spacing": 2,
"keyword-spacing": 2,
"line-comment-position": 1,
"linebreak-style": 2,
"lines-around-comment": 2,
"lines-between-class-members": 2,
"multiline-comment-style": 1,
"new-parens": 2,
"no-array-constructor": 2,
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
"no-trailing-spaces": 2,
"no-whitespace-before-property": 2,
"object-curly-newline": [2, {"consistent": true}],
"quotes": [1, "single"],
"semi": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": 1,
"switch-colon-spacing": 2,
"arrow-spacing": 2,
"prefer-const": 1,
"prefer-destructuring": 1,
"prefer-rest-params": 1,
"prefer-spread": 1,
"prefer-template": 1,
"rest-spread-spacing": 2,
"template-curly-spacing": 2
}
}