-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
59 lines (59 loc) · 1.48 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
env: {
browser: true,
es2020: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: ["./tsconfig.json", "./tsconfig.node.json", "./tsconfig.app.json"],
tsconfigRootDir: __dirname,
extraFileExtensions: [".html"],
},
settings: {
react: { version: "detect" },
"import/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] },
"import/resolver": {
node: { extensions: [".js", ".jsx", ".ts", ".tsx"] },
},
},
plugins: [
"react-refresh",
"react",
"react-hooks",
"jsx-a11y",
"import",
"@typescript-eslint",
"prettier",
],
rules: {
"react-refresh/only-export-components": "warn",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/jsx-uses-react": "off",
"react/jsx-uses-vars": "off",
"no-unused-vars": "off",
"import/no-unresolved": "off",
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/explicit-module-boundary-types": "off",
},
ignorePatterns: [
"postcss.config.js",
"tailwind.config.ts",
"*.html",
".eslintrc.cjs",
],
};