-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.cjs
49 lines (48 loc) · 1.17 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
// .eslintrc.cjs
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"plugin:@tanstack/eslint-plugin-query/recommended",
"plugin:prettier/recommended",
"eslint-config-prettier",
],
ignorePatterns: ["dist", ".eslintrc.cjs", "vite.config.ts"],
parser: "@typescript-eslint/parser",
plugins: [
"react-refresh",
"react",
"@tanstack/query",
"@typescript-eslint",
"prettier",
],
settings: {
react: {
version: "detect",
},
},
rules: {
"react/react-in-jsx-scope": "off",
"react/function-component-definition": [
2,
{ namedComponents: "arrow-function" },
],
"@tanstack/query/exhaustive-deps": "error",
"@tanstack/query/no-rest-destructuring": "warn",
"@tanstack/query/stable-query-client": "error",
quotes: ["error", "double"],
"prettier/prettier": [
"error",
{
endOfLine: "auto",
},
],
"react/no-unescaped-entities": 0,
},
}