-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
44 lines (44 loc) · 1.35 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"settings": {
"import/resolver": "webpack"
},
"rules": {
// I think using .jsx extension is unnecessary
"react/jsx-filename-extension": false,
// there is cases, specifically in redux, that you might have sigle action/constant,
// but you still want it to be named export
"import/prefer-default-export": false,
// this is not needed, cause webpack will take care of it
"import/no-extraneous-dependencies": false,
// this is handled by prettier
"object-curly-newline": "off",
"indent": "off",
"comma-dangle": ["error", "always-multiline", { "functions": "never" }],
"implicit-arrow-linebreak": "off",
"react/jsx-indent": "off",
"react/jsx-one-expression-per-line": "off",
"arrow-parens": "off",
"function-paren-newline": "off",
// this is good recommendation, but I know what I am doing
"react/no-did-update-set-state": "off",
"react/forbid-prop-types": "off",
"class-methods-use-this": "off",
"no-plusplus": "off",
"no-restricted-globals": "off",
"no-restricted-properties": "off",
"camelcase": "off",
"react/no-array-index-key": "off",
"react/prop-types": "off"
}
}