generated from emrecancorapci/tauri-react-typescript-tailwind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
107 lines (106 loc) · 3.48 KB
/
.eslintrc
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"env": {
"browser": true,
"node": true,
"es2024": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": true,
"node": true
},
"react": {
"version": "detect"
}
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json", "./tsconfig.node.json"],
"tsconfigRootDir": "./"
},
"plugins": [
"@typescript-eslint", // Ready for flat config
"import", // Not ready for flat config yet: https://github.com/import-js/eslint-plugin-import/issues/2948
"jsx-a11y", // Not ready for flat config yet: https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/978
"react", // Not ready for flat config yet: https://github.com/jsx-eslint/eslint-plugin-react/issues/3699
"prettier", // Ready for flat config
"promise", // NOT ready for flat config yet: https://github.com/eslint-community/eslint-plugin-promise/issues/449
"react-hooks", // NOT ready for flat config yet: https://github.com/facebook/react/issues/28313
"react-hook-form", // NOT ready for flat config (and won't be for a while)
"react-refresh", // Ready for flat config
"react-perf", // NOT ready for flat config (and won't be for a while)
"regexp", // Ready for flat config
"simple-import-sort", // Ready for flat config
"tailwindcss", // NOT ready for flat config yet: https://github.com/francoismassart/eslint-plugin-tailwindcss/issues/335
"unicorn" // Ready for flat config
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:jsx-a11y/recommended",
"plugin:n/recommended",
"plugin:promise/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:react-hook-form/recommended",
"plugin:react-perf/recommended",
"plugin:regexp/recommended",
"plugin:security/recommended-legacy",
"plugin:tailwindcss/recommended",
"plugin:unicorn/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-misused-promises": [
2,
{
"checksVoidReturn": {
"attributes": false
}
}
],
"n/no-missing-import": "off",
"no-unused-vars": "off",
"no-unused-expressions": [
"error",
{
"allowTernary": true
}
],
"jsx-a11y/anchor-is-valid": "warn",
"jsx-a11y/media-has-caption": "warn",
"prettier/prettier": "warn",
"promise/always-return": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react-perf/jsx-no-new-function-as-prop": "off",
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true }
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"unicorn/expiring-todo-comments": "off",
"unicorn/filename-case": "off",
"unicorn/no-useless-undefined": "warn",
"unicorn/prevent-abbreviations": "warn"
}
}