Skip to content

Commit ef961a0

Browse files
Update eslint.config.js
1 parent 70f29fa commit ef961a0

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

eslint.config.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ export default antfu(
55
formatters: true,
66
stylistic: { indent: "tab", quotes: "backtick" },
77
rules: {
8-
"style/comma-dangle": [ "warn", "never" ],
9-
"style/array-bracket-spacing": [ "warn", "always" ],
8+
"style/comma-dangle": [ "error", "never" ],
9+
"style/array-bracket-spacing": [ "error", "always" ],
1010
"unicorn/prefer-node-protocol": "off",
1111
"unicorn/throw-new-error": "off",
12-
"jsonc/array-bracket-spacing": [ "warn", "always" ],
12+
"jsonc/array-bracket-spacing": [ "error", "always" ],
1313
"unicorn/new-for-builtins": "off",
1414
eqeqeq: "off",
15-
"style/quote-props": [ "warn", "as-needed" ],
16-
"style/brace-style": [ "warn", "1tbs" ],
15+
"style/quote-props": [ "error", "as-needed" ],
16+
"style/brace-style": [ "error", "1tbs" ],
1717
"antfu/curly": "off",
18-
"style/operator-linebreak": [ "warn", "after", { overrides: { ":": "before" } } ],
19-
"style/arrow-parens": [ "warn", "as-needed" ],
20-
"style/new-parens": [ "warn", "never" ],
18+
"style/operator-linebreak": [ "error", "after", { overrides: { ":": "before" } } ],
19+
"style/arrow-parens": [ "error", "as-needed" ],
20+
"style/new-parens": [ "error", "never" ],
2121
"antfu/consistent-list-newline": "off",
2222
"antfu/top-level-function": "off",
23-
"no-cond-assign": [ "warn", "except-parens" ],
23+
"no-cond-assign": [ "error", "except-parens" ],
2424
"style/multiline-ternary": "off",
2525
"antfu/no-top-level-await": "off",
26-
"node/prefer-global/process": [ "warn", "always" ],
27-
"ts/consistent-type-definitions": [ "warn", "type" ],
26+
"node/prefer-global/process": [ "error", "always" ],
27+
"ts/consistent-type-definitions": [ "error", "type" ],
2828
"unicorn/prefer-number-properties": "off",
29-
"style/indent": [ "warn", "tab", { SwitchCase: 1, ignoredNodes: [ "ConditionalExpression" ] } ],
29+
"style/indent": [ "error", "tab", { SwitchCase: 1, ignoredNodes: [ "ConditionalExpression" ] } ],
3030
"style/indent-binary-ops": "off",
31-
"yaml/flow-mapping-curly-spacing": [ "warn", "always" ],
32-
"yaml/flow-sequence-bracket-spacing": [ "warn", "always" ],
33-
"yaml/quotes": [ "warn", { prefer: "double" } ],
34-
"yaml/indent": [ "warn", 2, { indentBlockSequences: false } ],
31+
"yaml/flow-mapping-curly-spacing": [ "error", "always" ],
32+
"yaml/flow-sequence-bracket-spacing": [ "error", "always" ],
33+
"yaml/quotes": [ "error", { prefer: "double" } ],
34+
"yaml/indent": [ "error", 2, { indentBlockSequences: false } ],
3535
"style/padding-line-between-statements": [
36-
"warn",
36+
"error",
3737
{ blankLine: "always", prev: "multiline-const", next: "*" },
3838
{ blankLine: "always", prev: "*", next: "multiline-const" },
3939
{ blankLine: "always", prev: "multiline-export", next: "*" },
@@ -74,7 +74,7 @@ export default antfu(
7474
{
7575
files: [ "**/*.js" ],
7676
rules: {
77-
"style/quotes": [ "warn", "double" ]
77+
"style/quotes": [ "error", "double" ]
7878
}
7979
}
8080
)

0 commit comments

Comments
 (0)