-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
54 lines (54 loc) · 1.38 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
{
"extends": [
"airbnb",
"prettier",
"plugin:react/recommended",
"prettier",
"prettier/react"
],
"plugins": ["prettier"],
"rules": {
"prettier/prettier": ["error"],
"no-underscore-dangle": "off",
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"react/boolean-prop-naming": [
"warn",
{
"propTypeNames": ["bool"],
"rule": "^(is|has)[A-Z]([A-Za-z0-9]?)+",
"validateNested": true
}
],
"react/default-props-match-prop-types": "warn",
"react/destructuring-assignment": "warn",
"react/forbid-prop-types": "error",
"react/jsx-boolean-value": ["warn", "never"],
"react/jsx-filename-extension": "off",
"react/jsx-fragments": ["warn", "element"],
"react/jsx-handler-names": "warn",
"react/jsx-sort-props": [
"warn",
{
"callbacksLast": true,
"reservedFirst": true,
"shorthandFirst": true
}
],
"react/no-access-state-in-setstate": "error",
"react/no-unused-prop-types": "warn",
"react/no-unused-state": "warn",
"react/no-string-refs": ["warn", { "noTemplateLiterals": true }],
"react/no-this-in-sfc": "error",
"react/prefer-stateless-function": "off",
"react/require-default-props": [
"error",
{ "forbidDefaultForRequired": true }
],
"react/sort-comp": "error"
}
}