-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
54 lines (54 loc) · 1.43 KB
/
index.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:react/jsx-runtime",
"plugin:react-native/all",
"prettier",
],
plugins: ["@typescript-eslint", "import"],
settings: {
react: {
pragma: "React",
version: "detect",
},
},
rules: {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-object-literal-type-assertion": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-empty-function": 0,
"import/no-duplicates": 2,
"import/no-useless-path-segments": 2,
"import/no-cycle": 0,
"import/prefer-default-export": 0,
"import/named": 0,
"import/namespace": 0,
"import/default": 0,
"import/no-named-as-default-member": 0,
"import/no-named-as-default": 0,
"import/no-unused-modules": 0,
"import/no-deprecated": 0,
"react-native/no-color-literals": 0,
"react-native/no-inline-styles": 0,
"react-native/no-raw-text": 0,
"react-native/sort-styles": 0,
"comma-dangle": 0,
"multiline-ternary": 0,
"no-undef": 0,
"no-unused-vars": 0,
"no-use-before-define": "off",
"react-hooks/rules-of-hooks": 2,
"react/no-unescaped-entities": 0,
"react/react-in-jsx-scope": 0,
"react/prop-types": "off",
"no-console": "warn",
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
};