-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
62 lines (62 loc) · 1.62 KB
/
.eslintrc
File metadata and controls
62 lines (62 loc) · 1.62 KB
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
{
"env": {
"browser": true
},
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"@react-native-community",
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:react-hooks/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"@typescript-eslint",
"prettier",
"jest",
"import",
"react-hooks",
"react",
"react-native"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react/function-component-definition": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/naming-convention": "off",
"prefer-regex-literals": "off",
"react-hooks/exhaustive-deps": "error",
"react/jsx-props-no-spreading": "off",
"import/no-named-default": "off",
"@typescript-eslint/no-loop-func": "error",
"import/no-extraneous-dependencies": "off",
"react/forbid-prop-types": "off",
"react-native/no-unused-styles": "error",
"@typescript-eslint/no-use-before-define": ["error", { "variables": false }]
},
"parserOptions": {
"project": "./tsconfig.json",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"import/extensions": [".js", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".ts", ".tsx"]
}
}
}
}