-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.52 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
{
"root": true,
"extends": ["next", "next/core-web-vitals", "plugin:@typescript-eslint/recommended", "eslint:recommended", "plugin:react/recommended", "prettier"],
"plugins": ["@tanstack/query", "@typescript-eslint", "react", "react-hooks", "prettier"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx", "*.mdx"]
}
],
"rules": {
"no-undef": "off",
"no-unused-vars": "off",
"no-redeclare": "off",
"no-duplicate-imports": "error",
"@next/next/no-html-link-for-pages": "error",
"@tanstack/query/stable-query-client": "error",
"prettier/prettier": "error",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
"react/no-unknown-property": "off",
"react-hooks/rules-of-hooks": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": "error",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": ["const", "let", "var"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"] },
{ "blankLine": "always", "prev": ["case", "default"], "next": "*" }
]
},
"env": {
"browser": true,
"node": true,
"jest": true,
"es2021": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2021,
"sourceType": "module"
}
}