-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
160 lines (160 loc) · 4.7 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"env": {
"es6": true,
"node": true
},
"extends": ["eslint:recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"globals": {
"document": false,
"fetch": false,
"window": false
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"no-cond-assign": ["error"],
"no-console": [
"warn",
{
"allow": [
"info",
"warn",
"error",
"debug",
"group",
"groupEnd",
"groupCollapsed"
]
}
],
"no-constant-condition": ["error"],
"no-control-regex": ["error"],
"no-debugger": ["error"],
"no-dupe-args": ["error"],
"no-dupe-keys": ["error"],
"no-duplicate-case": ["error"],
"no-empty": ["error"],
"no-empty-character-class": ["error"],
"no-ex-assign": ["error"],
"no-extra-boolean-cast": ["error"],
"no-extra-parens": ["off"],
"no-extra-semi": ["error"],
"no-func-assign": ["error"],
"no-inner-declarations": ["error"],
"no-invalid-regexp": ["error"],
"no-irregular-whitespace": ["error"],
"no-negated-in-lhs": ["error"],
"no-obj-calls": ["error"],
"no-regex-spaces": ["error"],
"no-sparse-arrays": ["error"],
"no-unreachable": ["error"],
"quote-props": ["off"],
"use-isnan": ["error"],
"valid-jsdoc": [
"error",
{ "requireReturn": false, "requireReturnDescription": false }
],
"valid-typeof": ["error"],
"block-scoped-var": ["off"],
"complexity": ["off"],
"consistent-return": ["off"],
"curly": ["error"],
"default-case": ["error"],
"dot-notation": ["error"],
"eqeqeq": ["warn"],
"guard-for-in": ["warn"],
"no-alert": ["off"],
"no-caller": ["error"],
"no-div-regex": ["error"],
"no-else-return": ["warn"],
"no-labels": ["error"],
"no-eq-null": ["error"],
"no-eval": ["error"],
"no-extend-native": ["error"],
"no-extra-bind": ["error"],
"no-fallthrough": ["error"],
"no-floating-decimal": ["error"],
"no-implied-eval": ["error"],
"no-iterator": ["error"],
"no-lone-blocks": ["error"],
"no-loop-func": ["error"],
"no-multi-spaces": ["error"],
"no-multi-str": ["error"],
"no-native-reassign": ["error"],
"no-new": ["error"],
"no-new-func": ["error"],
"no-new-wrappers": ["error"],
"no-octal": ["error"],
"no-octal-escape": ["error"],
"no-param-reassign": ["error"],
"no-process-env": ["off"],
"no-proto": ["error"],
"no-redeclare": ["error"],
"no-return-assign": ["error"],
"no-script-url": ["error"],
"no-self-compare": ["error"],
"no-sequences": ["error"],
"no-throw-literal": ["error"],
"no-unused-expressions": ["error"],
"no-void": ["error"],
"no-warning-comments": ["off"],
"no-with": ["error"],
"radix": ["error"],
"vars-on-top": ["warn"],
"wrap-iife": ["error"],
"yoda": ["warn"],
"strict": ["off"],
"no-catch-shadow": ["error"],
"no-delete-var": ["error"],
"no-label-var": ["error"],
"no-shadow": ["error"],
"no-shadow-restricted-names": ["error"],
"no-undef": ["error"],
"no-undef-init": ["error"],
"no-undefined": ["error"],
"no-unused-vars": [
"error",
{ "vars": "all", "args": "after-used", "ignoreRestSiblings": false }
],
"no-use-before-define": ["error"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-var": ["warn"],
"generator-star-spacing": [2, "both"],
"max-depth": ["error", 3],
"max-len": ["off"],
"max-params": ["error", 5],
"max-statements": ["off"],
"no-bitwise": ["off"],
"no-plusplus": ["error"],
"jsx-quotes": ["error", "prefer-double"],
# "react/display-name": ["off"],
# "react/jsx-key": ["error"],
# "react/jsx-no-undef": ["error"],
# "react/jsx-sort-props": 0,
# "react/jsx-uses-react": ["error"],
# "react/jsx-uses-vars": ["error"],
# "react/jsx-wrap-multilines": ["off"],
# "react/no-did-mount-set-state": ["error"],
# "react/no-did-update-set-state": ["error"],
# "react/no-multi-comp": 0,
# "react/no-unknown-property": ["error"],
# "react/prop-types": ["off"],
# "react/react-in-jsx-scope": ["error"],
# "react/self-closing-comp": ["error"],
# "react-native/no-unused-styles": ["error"],
# "react-native/split-platform-components": ["error"],
# "react-native/no-inline-styles": ["error"],
# "react-native/no-color-literals": ["warn"]
}
}