-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
59 lines (59 loc) · 1.34 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
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "16.5"
}
},
"env": {
"jest/globals": true
},
"extends": [
"standard",
"prettier",
"prettier/react",
"plugin:react/recommended",
"plugin:jest/recommended"
],
"plugins": ["react", "jest", "prettier"],
"rules": {
"react/no-unused-prop-types": 1,
"space-before-function-paren": 0,
"comma-dangle": [2, "always-multiline"],
"react/destructuring-assignment": [2, "always"],
"react/default-props-match-prop-types": 1,
"react/boolean-prop-naming": 1,
"react/no-typos": 1,
"react/require-default-props": 1,
"react/sort-comp": 1,
"react/sort-prop-types": [
1,
{
"requiredFirst": true
}
],
"react/jsx-sort-props": 1,
"react/jsx-sort-default-props": 1,
"react/jsx-wrap-multilines": [
1,
{
"return": "parens-new-line",
"declaration": "parens-new-line",
"arrow": "parens-new-line",
"condition": "parens-new-line",
"logical": "parens-new-line",
"prop": "parens-new-line"
}
],
"no-unused-vars": "warn",
"prettier/prettier": "error"
},
"globals": {
"localStorage": true
}
}