-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.58 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
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
module.exports = {
settings: {
react: {
version: "detect" // React version. "detect" automatically picks the version you have installed.
},
"import/resolver": {
"babel-module": {}
}
},
extends: [
"eslint:recommended",
"@react-native",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"prettier"
],
rules: {
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/no-misused-promises": "off",
"react/display-name": "off",
"react-native/no-inline-styles": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": ["warn"],
radix: "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_"
}
],
"no-void": ["error", { allowAsStatement: true }],
"no-console": ["error", { allow: ["error", "warn"] }]
},
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./tsconfig.json"]
},
ignorePatterns: [
"webpack.config.ts",
"react-native.config.js",
"metro.config.js",
"jest.config.js",
"index.js",
"babel.config.js",
".eslintrc.js"
],
plugins: ["@typescript-eslint", "module-resolver"],
root: true
};