forked from AuxStudio/react-native-simple-animators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
46 lines (46 loc) · 1.54 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
{
"env": {
"node": true, // this is the best starting point
"browser": true, // for react web
"es6": true, // enables es6 features
"jest": true
},
"parser": "babel-eslint", // needed to make babel stuff work properly
"extends": "airbnb",
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/no-named-as-default": 0,
"function-paren-newline": ["error", "consistent"],
"no-console": "off", // console logging is extremely useful
"no-mixed-operators": "off", // I personally don't see anything wrong with x + y / z
"prefer-rest-params": "off",
"no-underscore-dangle": "off", // firebase loves returning props with leading underscores
"prefer-destructuring": [
"error",
{
"array": false,
"object": true
}
],
"react/require-default-props": "off",
"arrow-body-style": 0, // don't enforce arrow-body-style, block body (() => { ... }) and single expression (() => ...) depends on use case
"object-curly-newline": "off", // prettier is no longer placing props on new lines so we'll disable this rule until they fix it
"import/no-unresolved": "off",
"import/extensions": "off",
"react/sort-comp": [
1,
{ "order": ["constructor", "static-methods", "lifecycle", "everything-else", "render"] }
]
},
"plugins": ["react", "react-native"],
"globals": {
"__DEV__": true
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".android.js", ".ios.js"]
}
}
}
}