-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
60 lines (60 loc) · 1.46 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
50
51
52
53
54
55
56
57
58
59
60
{
"env": {
"browser": true,
"node": true,
"commonjs": false,
"es6": true,
"react-native/react-native": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["babel", "react", "react-native"],
"rules": {
"strict": [2, "never"],
"babel/new-cap": 1,
"indent": ["error", 2],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "never"],
"global-require": 0,
"react/jsx-uses-vars": 2,
"react/jsx-uses-react": 2,
"react/react-in-jsx-scope": 2,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"react-native/no-raw-text": 2,
"react/jsx-filename-extension": 0,
"no-underscore-dangle": 0,
"func-names": [2, "never"],
"react/sort-comp": 0,
"no-return-assign": 0,
"import/no-extraneous-dependencies": 0,
"no-prototype-builtins": "error",
"react/no-unused-prop-types": 0
},
"globals": {
"fetch": false
},
"settings": {
"import/resolver": {
"babel-module": {
"alias": {
"root": "app",
"components": "./app/components",
"actions": "./app/actions",
"config": "./app/config",
"graphql": "./app/graphql"
}
}
}
}
}