-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
29 lines (25 loc) · 918 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
module.exports = {
root: true,
extends: '@react-native-community',
rules: {
// Typescript
"@typescript-eslint/indent": "off",
"@typescript-eslint/camelcase": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-object-literal-type-assertion": "warn",
// ESLint
"quotes": "off",
"no-console": "error",
"no-use-before-define": "error",
// React hooks
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
// React-native
"react-native/no-raw-text": "off",
"react-native/no-inline-styles": "error",
"react-native/no-unused-styles": "error",
"react-native/no-color-literals": "error",
}
};