-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
74 lines (74 loc) · 2.32 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"next/core-web-vitals",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended"
// TODO: "plugin:@typescript-eslint/stylistic-type-checked"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"project": true,
"sourceType": "module"
},
"plugins": [
"react",
"@typescript-eslint",
"simple-import-sort",
"import"
],
"rules": {
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/type-annotation-spacing": "warn",
"arrow-spacing": "warn",
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"comma-spacing": "warn",
"eol-last": "warn",
"import/first": "warn",
"import/newline-after-import": "warn",
"import/no-duplicates": "warn",
"indent": ["warn", 2],
"jsx-quotes": ["warn", "prefer-single"],
"key-spacing": ["warn", { "beforeColon": false }],
"keyword-spacing": "warn",
"no-multi-spaces": "warn",
"no-multiple-empty-lines": ["warn", { "max": 1, "maxBOF": 0, "maxEOF": 0 }],
"no-trailing-spaces": "warn",
"no-whitespace-before-property": "warn",
"object-curly-spacing": ["warn", "always"],
"padded-blocks": ["warn", "never"],
"padding-line-between-statements": ["warn",
{ "blankLine": "always", "prev": "*", "next": ["block", "block-like", "return"] },
{ "blankLine": "always", "prev": ["block", "block-like", "const", "import", "let"], "next": "*" },
{ "blankLine": "never", "prev": "import", "next": "import" },
{ "blankLine": "any", "prev": ["const", "let"], "next": ["const", "let"] }
],
"quotes": ["warn", "single"],
"react/jsx-newline": ["warn", { "prevent": true }],
"react/jsx-tag-spacing": ["warn", { "beforeSelfClosing": "always" }],
"react/self-closing-comp": ["warn", {
"component": true,
"html": true
}],
"semi": "warn",
"semi-spacing": "warn",
"simple-import-sort/exports": "warn",
"simple-import-sort/imports": [
"warn",
{
"groups": [["^\\u0000", "^@?\\w", "^[^.]", "^\\."]]
}
],
"space-before-blocks": "warn",
"space-infix-ops": "warn"
}
}