-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
43 lines (43 loc) · 1.22 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
{
"root": true,
"parserOptions": { "project": "./tsconfig.json" },
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"prettier"
],
"plugins": ["@typescript-eslint", "simple-import-sort", "import"],
"rules": {
"@typescript-eslint/consistent-type-definitions": [2, "type"],
"@typescript-eslint/consistent-type-imports": "error",
"import/first": 2,
"import/newline-after-import": 2,
"import/no-duplicates": 2,
"import/no-extraneous-dependencies": 2,
"import/no-named-default": 2,
"jsx-quotes": [2, "prefer-double"],
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/jsx-sort-props": [2, { "ignoreCase": true }],
"simple-import-sort/exports": 2,
"simple-import-sort/imports": 2
},
"overrides": [
{
"files": ["*.tsx"],
"rules": { "import/prefer-default-export": 2 }
},
{
"files": ["*.config.js"],
"extends": ["plugin:@typescript-eslint/disable-type-checked"],
"rules": { "no-undef": 0 }
}
]
}