-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
49 lines (49 loc) · 1.54 KB
/
Copy path.eslintrc.json
File metadata and controls
49 lines (49 loc) · 1.54 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
{
"root": true,
"env": { "browser": true, "es2020": true },
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json"
},
"plugins": ["react", "@tanstack/query", "@typescript-eslint", "import", "simple-import-sort"],
"settings": {
"react": { "version": "detect" },
"linkComponents": [{ "name": "Link", "linkAttribute": "to" }]
},
"rules": {
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-deprecated": "warn",
"import/no-unresolved": "off",
"react/react-in-jsx-scope": "off",
"import/no-default-export": "error",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"no-multiple-empty-lines": ["error", { "maxBOF": 0, "max": 1, "maxEOF": 1 }],
"no-multi-spaces": "error",
"no-console": "warn"
}
}