-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
52 lines (52 loc) · 1.64 KB
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"react-app",
"airbnb",
"airbnb-typescript",
"plugin:import/typescript",
"prettier",
"plugin:@tanstack/eslint-plugin-query/recommended"
],
"overrides": [],
"ignorePatterns": ["vite.config.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "@typescript-eslint", "prettier", "@tanstack/query"],
"rules": {
"indent": ["error", 4],
"@typescript-eslint/indent": ["error", 4],
"@typescript-eslint/quotes": ["error", "double"],
"linebreak-style": ["error", "windows"],
"semi": ["error", "always"],
"react/react-in-jsx-scope": ["off"],
"react/jsx-props-no-spreading": ["off"],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"import/extensions": ["off"],
"@typescript-eslint/comma-dangle": ["off"],
"@typescript-eslint/no-shadow": ["off"],
"jsx-a11y/label-has-associated-control": [
"error",
{
"required": {
"some": ["nesting", "id"]
}
}
],
"object-curly-newline": ["off"],
"no-alert": ["off"],
"react/require-default-props": ["off"],
"jsx-a11y/no-autofocus": ["off"],
"@typescript-eslint/no-use-before-define": ["off"],
"import/prefer-default-export": ["off"],
"import/no-duplicates": ["off"]
}
}