-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.6 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
module.exports = {
extends: [
"expo",
"eslint:recommended",
"plugin:@typescript-eslint/recommended", // or 'plugin:@typescript-eslint/recommended' if using TypeScript
"prettier", // This disables ESLint rules that conflict with Prettier
],
plugins: ["prettier", "import"],
rules: {
"prettier/prettier": "error",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-var-requires": 0,
"import/no-unresolved": "error",
},
overrides: [
{
files: ["*.native.tsx", "*.web.tsx", "*.ios.tsx", "*.android.tsx"],
rules: {
"import/no-unresolved": "off",
},
},
],
env: {
browser: true,
amd: true,
node: true,
},
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
typescript: {
project: "./expo-next/tsconfig.json",
// alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
// Choose from one of the "project" configs below or omit to use <root>/tsconfig.json by default
// use <root>/path/to/folder/tsconfig.json
// // use a glob pattern
// project: "packages/*/tsconfig.json",
// // use an array
// project: [
// "packages/module-a/tsconfig.json",
// "packages/module-b/tsconfig.json",
// ],
// // use an array of glob patterns
// project: ["../packages/*/tsconfig.json"],
},
},
},
};