forked from Evaneos/vitaminjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
45 lines (44 loc) · 1.34 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
{
"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-unresolved": [2, {
"ignore": [
// App dependancies, as global modules
"__app_modules__",
// Peer dependancies
"react",
"react-dom"
]
} ]
}
}