-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.13 KB
/
.eslintrc.js
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
module.exports = {
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:flowtype/recommended"
],
"parser": "babel-eslint",
"plugins": [
"flowtype",
"react",
"react-native",
"jsx-a11y",
"import"
],
"rules": {
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/display-name": 0,
"no-console": 0,
"no-unused-vars": 1, // (disable only during heavy development)
"quotes": 0,
"react/sort-comp": [1, {
order: [
'type-annotations',
'static-methods',
'lifecycle',
'everything-else',
'render',
],
}],
"react-native/no-unused-styles": 1,
// "react-native/no-inline-styles": 1,
// "react-native/no-color-literals": 1,
},
"globals": {
"XMLHttpRequest": false,
// XMLHttpRequest is provided in a react native environment. Don't complain if we use it.
// (False just means our code shouldn't overwrite that variable.)
}
};