-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
74 lines (74 loc) · 1.84 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
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"@antfu"
],
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"camelcase": "off",
"import/named": "off",
"no-useless-constructor": "off",
"no-control-regex": "off",
"no-console": "warn",
"@typescript-eslint/brace-style": "off",
"brace-style": [
"error",
"1tbs"
],
"curly": [
"error",
"all"
],
"object-property-newline": ["error", { "allowAllPropertiesOnSameLine": true }],
"@typescript-eslint/space-before-function-paren": "off",
"comma-dangle": ["error", "always-multiline"],
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"react/jsx-max-props-per-line": ["error", {
"maximum": { "single": 3, "multi": 1 }
}],
"react/jsx-first-prop-new-line": ["error", "multiline-multiprop"],
"react/jsx-closing-bracket-location": ["error", "tag-aligned"],
"react/jsx-indent": [
"error",
2,
{"indentLogicalExpressions": true}
],
"react/jsx-indent-props": ["error", 2],
"react/sort-comp": ["error", {
"order": [
"static-methods",
"lifecycle",
"everything-else",
"render"
]
}]
}
}