-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (29 loc) · 1.03 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
/* eslint-env node */
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
jsx: true,
useJSXTextNode: true,
},
extends: ["plugin:@typescript-eslint/recommended"],
plugins: ["@typescript-eslint", "react", "react-native", "react-hooks"],
rules: {
"react/prop-types": "off",
"react/display-name": "off",
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 0,
"react-native/no-raw-text": "off",
"@typescript-eslint/explicit-function-return-type": "off",
// Removed rule "disallow the use of console" from recommended eslint rules
"no-console": 1,
// Removed rule "disallow the use of debugger" from recommended eslint rules
"no-debugger": 1,
// Removed rule "disallow unused variables" from recommended eslint rules
"no-unused-vars": 2,
"no-undef": ["error"],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
},
};