-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy patheslint.config.mjs
More file actions
83 lines (81 loc) · 1.86 KB
/
eslint.config.mjs
File metadata and controls
83 lines (81 loc) · 1.86 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import js from "@eslint/js"
import { FlatCompat } from "@eslint/eslintrc"
import reactHooks from "eslint-plugin-react-hooks"
import typescript from "@typescript-eslint/eslint-plugin"
import typescriptParser from "@typescript-eslint/parser"
import reactCompiler from "eslint-plugin-react-compiler"
const compat = new FlatCompat()
export default [
js.configs.recommended,
...compat.extends(
"expo",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@tanstack/eslint-plugin-query/recommended",
"plugin:react/recommended"
),
{
ignores: [
"nodejs-assets/**/*",
"node_modules/**/*",
"patches/**/*",
"android/**/*",
"ios/**/*",
".vscode/**/*",
".expo/**/*",
".git/**/*",
".maestro/**/*",
"filen-rs/**/*",
"filen-android-documents-provider/**/*",
"filen-ios-file-provider/**/*",
".github/**/*",
"metro.config.js",
"tailwind.config.js",
"index.js",
"eslint.config.mjs",
"metro.config.js",
"plugins/**/*",
"prebuilds/**/*",
"locales/**/*"
]
},
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: typescriptParser
},
plugins: {
"@typescript-eslint": typescript,
"react-hooks": reactHooks,
"react-compiler": reactCompiler
},
rules: {
eqeqeq: 2,
quotes: ["error", "double"],
"no-mixed-spaces-and-tabs": 0,
"no-duplicate-imports": "error",
"no-extra-semi": 0,
"@typescript-eslint/ban-types": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react-compiler/react-compiler": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_"
}
]
}
},
{
settings: {
react: {
version: "detect"
}
}
}
]