-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
35 lines (33 loc) · 1002 Bytes
/
.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
{
"parser": "babel-eslint",
"env": {
"node": true,
"browser": true,
"es6": true,
"jest": true
},
"extends": "eslint-config-airbnb",
"globals": {
"__DEV__": true
},
"plugins": [
"react",
"react-native"
],
"rules": { // possible "off", "warn", "error"
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-console" : "off",
"no-underscore-dangle": "off",
// Disable this to allow Flow & JS imports from same file.
// import/no-duplicates takes care of other import duplication.
// See: https://github.com/airbnb/javascript/issues/1054
// TODO: Revisit separate files for Flow types
"no-duplicate-imports": "off",
"react-native/no-unused-styles": "error",
"react-native/split-platform-components": "error",
"react-native/no-inline-styles": "error",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4]
}
}