-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
68 lines (68 loc) · 2.04 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"root": true,
"parser": "babel-eslint",
"extends": ["airbnb", "prettier", "plugin:flowtype/recommended"],
"plugins": ["react", "react-native", "jsx-a11y", "import", "react-hooks"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"react-native/react-native": true
},
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/jsx-filename-extension": ["off"],
"react/jsx-one-expression-per-line": "off",
"linebreak-style": ["off"],
"implicit-arrow-linebreak": "off",
"no-undef": ["error"],
"react/sort-comp": ["off"],
"react/prefer-stateless-function": ["off"],
"react/destructuring-assignment": 1,
"function-paren-newline": "off",
"spaced-comment": "off",
"react/prop-types": "off",
"no-extra-boolean-cast": "off",
"quote-props": "off",
"object-curly-spacing": ["error", "always"],
"camelcase": "off",
"react/jsx-wrap-multilines": "off",
"operator-linebreak": "off",
"no-unused-expressions": "off",
"global-require": "off",
"max-len": "off",
"import/no-cycle": "off",
"no-underscore-dangle": "off",
"no-return-assign": "off",
"import/prefer-default-export": "off",
"jsx-quotes": ["error", "prefer-double"],
"no-console": "off",
"arrow-parens": "off",
"eol-last": "off",
"react/destructuring-assignment": "off",
"react-native/no-unused-styles": "off",
"react-native/split-platform-components": "off",
"react-native/no-inline-styles": "off",
"react-native/no-color-literals": "off",
"react-native/no-raw-text": "off",
"consistent-return": "off",
"import/named": "off",
"object-curly-newline": ["error", {"multiline": true}],
"no-nested-ternary": "off",
"no-use-before-define": "error",
"no-unused-vars": "warn",
"new-cap": "off",
"no-param-reassign": "off",
"no-await-in-loop": "off"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".ios.js", ".android.js"]
}
}
}
}