This repository has been archived by the owner on Mar 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.json
49 lines (48 loc) · 1.53 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"es6": true
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"globals": {
"IS_CLIENT": false,
"IS_SERVER": false,
"window": false
},
"rules": {
// We use 4 space indent at Evaneos
"indent": [2, 4],
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4],
// Nested ternary can be really convenient sometimes. They can be readable when using new lines.
"no-nested-ternary": 0,
// We use underscore dangle to underline globals
"no-underscore-dangle": 0,
// koa2 ctx needs to reassign properties
"no-param-reassign": 0,
// We use the react-require loader which require automatically React when using jsx
"react/react-in-jsx-scope": 0,
// PropType.Shape seems buggy
"react/no-unused-prop-types": [2, { "skipShapeProps": true }],
"import/extensions" : 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"function-paren-newline": [2, "consistent"],
"object-curly-newline": [2, {
"consistent": true
}],
"comma-dangle": [2, {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}]
}
}