-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
141 lines (141 loc) · 2.81 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"plugins": [
"react",
"import"
],
"env": {
"node": true,
"browser": true
},
"settings": {
"react": {
"version": "16.5.2"
}
},
"root": true,
"globals": {},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"jsx-a11y/no-autofocus": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"import/no-dynamic-require": "off",
"semi": [
2,
"never"
],
"brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"camelcase": 2,
"comma-style": [
2,
"last"
],
"curly": 2,
"eqeqeq": 2,
"func-names": 2,
"space-before-function-paren": [
"error",
"never"
],
"guard-for-in": 2,
"wrap-iife": 2,
"no-undef": 2,
"new-cap": 2,
"quotes": [
2,
"single"
],
"no-trailing-spaces": 2,
"comma-dangle": 0,
"max-len": [
2,
{
"code": 150,
"tabWidth": 2,
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"arrow-parens": 1,
"no-underscore-dangle": 0,
"strict": 0,
"no-shadow": 0,
"no-var": 2,
"no-useless-rename": 2,
"no-new-object": 2,
"no-array-constructor": 2,
"no-unused-vars": 1,
"no-case-declarations": "off",
"no-param-reassign": 0,
"global-require": 0,
"prefer-spread": 1,
"prefer-arrow-callback": 2,
"prefer-const": 1,
"react/prop-types": 0,
"react/boolean-prop-naming": [
"warn",
{
"rule": "^(is|has)[A-Z]([A-Za-z0-9]?)+"
}
],
"react/self-closing-comp": 1,
"react/default-props-match-prop-types": 1,
"react/no-deprecated": 1,
"react/require-default-props": 0,
"react/jsx-pascal-case": 2,
"react/jsx-key": 1,
"react/jsx-no-duplicate-props": 2,
"react/no-direct-mutation-state": 1,
"react/no-typos": 2,
"react/jsx-equals-spacing": [
2,
"never"
],
"react/no-string-refs": 1,
"import/prefer-default-export": 0,
"react/no-array-index-key": 0,
"no-console": 0,
"no-extend-native": 2,
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js"
]
}
],
"react/jsx-max-props-per-line": [
2,
{
"maximum": 3,
"when": "always"
}
],
"function-paren-newline": [
2,
"multiline"
]
}
}