-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc
58 lines (57 loc) · 1.28 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"parser": "babel-eslint",
"extends": [
"airbnb",
],
"plugins": [
"react",
"react-native",
"immutable",
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"env": {
"browser": true,
"jasmine": true,
"mocha": true
},
"rules": {
"no-var": 2,
"prefer-const": 2,
"no-undef": 2,
"no-unused-vars": 2,
"no-console": 1,
"new-cap": 1,
"strict": 0,
"react/prop-types": 1,
"immutable/no-let": 2,
"immutable/no-this": 2,
"immutable/no-mutation": 2,
"react/jsx-filename-extension": 0,
"import/prefer-default-export": 0,
"indent": 0,
"react/jsx-indent" : 0,
"react/jsx-indent-props" : 0,
"react-native/no-color-literals": 1,
"no-use-before-define": 0, // disallow use of variables before they are defined,
"global-require": 0, // since we need to load images by `require`
"react/require-extension": "off",
generator-star-spacing: 0,
},
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".android.js",
".ios.js"
]
}
}
}
}