-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.eslintrc.json
138 lines (138 loc) · 4.27 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"env": {
"browser": false,
"es6": true,
"node": true
},
"extends": ["airbnb", "prettier"],
"globals": {
"document": true,
"localStorage": true,
"window": true
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"plugins": ["babel", "react"],
"rules": {
"import/order": "off",
"array-callback-return": "error",
"arrow-parens": "off",
"brace-style": "error",
"class-methods-use-this": "off",
"curly": ["error", "all"],
"consistent-return": "warn",
"default-case": "off",
"func-names": "off",
"function-paren-newline": "off",
"global-require": "off",
"guard-for-in": "off",
"implicit-arrow-linebreak": "off",
"import/extensions": "off",
"import/newline-after-import": "off",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/no-webpack-loader-syntax": "off",
"import/prefer-default-export": "off",
"indent": "off",
"jsx-a11y/tabindex-no-positive": "off",
"jsx-a11y/click-events-have-key-events": "off",
"lines-between-class-members": "off",
"max-len": "off",
"newline-per-chained-call": "off",
"no-await-in-loop": "off",
"no-bitwise": "off",
"no-case-declarations": "error",
"no-confusing-arrow": "off",
"no-continue": "off",
"no-duplicate-case": "error",
"no-empty": "error",
"no-inline-comments": "off",
"no-lonely-if": "error",
"no-mixed-operators": "off",
"no-multi-spaces": "error",
"no-nested-ternary": "warn",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-prototype-builtins": "error",
"no-restricted-globals": ["error", "event"],
"no-restricted-properties": "error",
"no-restricted-syntax": ["error", "LabeledStatement", "WithStatement"],
"no-return-assign": "off",
"no-shadow": "error",
"no-template-curly-in-string": "off",
"no-underscore-dangle": "off",
"no-unexpected-multiline": "off",
"no-unneeded-ternary": "off",
"no-unused-expressions": "error",
"no-unused-vars": "warn",
"no-use-before-define": "off",
"no-useless-escape": "error",
"no-useless-constructor": "off",
"object-curly-newline": "off",
"object-property-newline": "off",
"one-var": "error",
"one-var-declaration-per-line": "off",
"operator-linebreak": "off",
"padding-line-between-statements": [
"warn",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "block-like", "next": "*" }
],
"prefer-const": "error",
"prefer-destructuring": "off",
"prefer-rest-params": "error",
"prefer-template": "off",
"react/button-has-type": "off",
"react/destructuring-assignment": "off",
"react/forbid-prop-types": "off",
"react/jsx-closing-bracket-location": "off",
"react/jsx-closing-tag-location": "off",
"react/jsx-curly-brace-presence": "off",
"react/default-props-match-prop-type": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js", "tsx"]
}
],
"react/jsx-first-prop-new-line": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-no-bind": "off",
"react/jsx-no-target-blank": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-wrap-multilines": "off",
"react/no-access-state-in-setstate": "off",
"react/no-array-index-key": "off",
"react/no-danger": "off",
"react/no-did-mount-set-state": "off",
"react/no-find-dom-node": "off",
"react/no-multi-comp": "off",
"react/no-string-refs": "error",
"react/no-unescaped-entities": "off",
"react/no-unused-prop-types": "off",
"react/no-unused-state": "off",
"react/default-props-match-prop-types": "off",
"react/prefer-stateless-function": [
"warn",
{
"ignorePureComponents": true
}
],
"react/prop-types": "off",
"react/require-default-props": "off",
"react/sort-comp": "off",
"space-before-function-paren": "off",
"spaced-comment": "off",
"valid-typeof": "error",
"vars-on-top": "off",
"wrap-iife": "off",
"no-buffer-constructor": "off",
"eqeqeq": ["error", "always"],
"no-console": "warn",
"no-debugger": "warn"
}
}