forked from EdgeApp/edge-react-gui
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
32 lines (32 loc) · 1.17 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
{
"extends": ["plugin:flowtype/recommended", "plugin:react-native/all", "plugin:react/recommended", "standard"],
"globals": {
"fetch": true
},
"parser": "babel-eslint",
"plugins": ["flowtype", "react-native", "react", "simple-import-sort", "standard"],
"rules": {
"camelcase": "warn",
"flowtype/generic-spacing": "off",
"flowtype/require-valid-file-annotation": [2, "always"],
"flowtype/semi": [2, "never"],
"no-throw-literal": "error",
"no-var": "error",
"prefer-const": "error",
"react-native/no-inline-styles": 0,
"react-native/no-raw-text": ["error", { "skip": ["FormattedText", "T", "B"] }],
"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/prop-types": 0,
"react/self-closing-comp": ["error", { "component": true }],
"simple-import-sort/sort": "error"
},
"settings": {
"react": { "pragma": "React", "version": "16.8.0", "flowVersion": "0.66" }
}
}