-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
99 lines (94 loc) · 2.41 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
{
"parser": "babel-eslint",
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src/"]
}
}
},
"plugins": [
"react",
"react-redux",
"jsx",
"prettier"
],
"globals": {
"document": true,
"window": true,
"React": true,
"ReactDOM": true,
"process": true,
"module": true,
"axios": true,
"_": true
},
"env": {
"es6": true,
"node": true,
"browser": true,
"jest": true
},
"extends": [
"airbnb",
"prettier",
"plugin:react/recommended",
"plugin:react-redux/recommended",
"prettier/babel",
"prettier/react"
],
"rules": {
"camelcase": 0,
"linebreak-style": [2, "unix"],
"semi": [1, "always"],
"indent": [0, "tab"],
"no-console": ["error", { "allow" : ["warn", "error"] }] ,
"no-case-declarations": 1,
"no-fallthrough": 0,
"no-plusplus": 0,
"no-unused-vars": [1,
{ "vars": "local",
"argsIgnorePattern": "^_",
"args": "after-used"
}],
"comma-dangle": [1, "always-multiline"],
"no-cond-assign": 1,
"no-restricted-syntax": 0,
"no-prototype-builtins": 0,
"no-shadow": 0,
"no-param-reassign": 0,
"guard-for-in": 0,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-filename-extension": 0,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-multi-comp": 0,
"react/no-unknown-property": 2,
"react/prop-types": 0,
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react-redux/connect-prefer-named-arguments": 0,
"react-redux/mapStateToProps-prefer-parameters-names": 0,
"react/jsx-wrap-multilines": ["error", {
"declaration": true,
"assignment": true,
"return": true,
"arrow": true
}],
"react/jsx-no-bind": 0,
"react/jsx-no-target-blank": 2,
"react/no-unescaped-entities": ["error", {"forbid": [">", "}", "\""]}],
"prettier/prettier": ["error"],
"no-unused-expressions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/label-has-associated-control": 0,
"jsx-a11y/label-has-for": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"react/no-direct-mutation-state": 0,
"consistent-return": 0
}
}