/
.eslintrc.js
32 lines (32 loc) · 888 Bytes
/
.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
module.exports = {
parser: "babel-eslint",
extends: [
"standard",
"plugin:react/recommended",
"plugin:react-native/all",
"plugin:prettier/recommended",
"prettier/flowtype",
"prettier/standard",
],
plugins: ["flowtype", "react", "react-native"],
env: {
jest: true,
},
rules: {
"react/display-name": "off",
"react/jsx-boolean-value": "error",
"react/default-props-match-prop-types": "error",
"react/no-redundant-should-component-update": "error",
"react/no-typos": "error",
"react/no-unused-state": "error",
"react/no-unused-prop-types": "error",
"react/default-props-match-prop-types": "off",
"react-native/no-color-literals": "off",
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1,
"import/no-unresolved": [
"error",
{ ignore: ["^react$", "^react-native$"] },
],
},
}