-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
36 lines (36 loc) · 1.05 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": ["standard", "plugin:react/recommended", "plugin:flowtype/recommended", "plugin:react-native/all" ],
"parser": "babel-eslint",
"plugins": [
"standard",
"promise",
"react",
"flowtype"
],
"rules": {
"flowtype/generic-spacing": "off",
"flowtype/require-valid-file-annotation": [2, "always"],
"flowtype/semi": [2, "never"],
"camelcase": "warn",
"no-throw-literal": "error",
"no-var": "error",
"prefer-const": "error",
"promise/no-return-wrap": "error",
"react/prop-types": "off",
"react/display-name": "off",
"react-native/no-inline-styles": 0,
"react-native/no-unused-styles": 0,
"react-native/split-platform-components": 2,
"react/jsx-indent-props": ["error", 2],
"react/jsx-no-duplicate-props": ["error", { "ignoreCase": true }],
"react/no-array-index-key": "error",
"react/no-string-refs": 0,
"react/no-typos": "error",
"react/self-closing-comp": ["error", { "component": true }]
}
}