forked from rainbow-me/rainbow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
44 lines (44 loc) · 1.08 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
{
"parser": "babel-eslint",
"plugins": [
"react",
"react-native",
"react-native-animation-linter"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"extends" : [
"eslint:recommended",
"plugin:react/recommended",
"airbnb-base"
],
"rules" : {
"arrow-body-style": "warn",
"camelcase": ["error", {ignoreDestructuring: true}],
"class-methods-use-this": "off",
"no-console": "off",
"max-len": ["error", {"code": 160, "comments": 500}],
"no-tabs": "error",
"indent": ["error", 2],
"no-use-before-define": ["error", {"functions": false, "variables": false}],
"no-unused-vars": ["error", {"args": "none"}],
"no-plusplus": ["off"],
"no-underscore-dangle": ["off"],
"arrow-parens": ["off"],
"no-param-reassign": ["off"],
"react-native-animation-linter/must-tear-down-animations": 2,
"sort-keys": ["error", "asc", {"caseSensitive": false, "natural": false}]
},
"globals": {
"fetch": false
},
"settings": {
"react": {
"version": "16.5.0"
}
}
}