-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.json
45 lines (45 loc) · 1.8 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
{
"extends": ["next/core-web-vitals", "next/typescript"],
"plugins": ["@stylistic"],
"rules": {
"@typescript-eslint/no-unused-vars": "warn",
"@stylistic/spaced-comment": ["error", "always"],
"@stylistic/function-call-spacing": ["error", "never"],
"@stylistic/padded-blocks": ["error", "never"],
"@stylistic/object-curly-spacing": ["error", "always"],
"@stylistic/function-paren-newline": ["off"],
"@stylistic/function-call-argument-newline": ["off"],
"@stylistic/object-property-newline": ["off"],
"@stylistic/space-before-function-paren": ["off"],
"@stylistic/lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
"@stylistic/quote-props": ["error", "as-needed"],
"@stylistic/array-element-newline": ["off"],
"@stylistic/multiline-ternary": ["off"],
"@stylistic/array-bracket-newline": ["off"],
"@stylistic/implicit-arrow-linebreak": ["off"],
"@stylistic/no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"@stylistic/multiline-comment-style": ["off"],
"@stylistic/dot-location": ["error", "property"],
"@stylistic/no-extra-parens": ["off"],
"@stylistic/comma-dangle": ["error", "only-multiline"],
"@stylistic/eol-last": ["off"],
"@stylistic/quotes": ["error", "single"],
"@stylistic/indent": ["error", 4, {
"SwitchCase": 1
}],
"@stylistic/lines-around-comment": ["error", {
"beforeBlockComment": true,
"afterBlockComment": false,
"beforeLineComment": false,
"afterLineComment": false,
"allowBlockStart": true,
"allowBlockEnd": true,
"allowObjectStart": true,
"allowObjectEnd": true,
"allowArrayStart": true,
"allowArrayEnd": true,
"allowClassStart": true,
"allowClassEnd": true
}]
}
}