Skip to content

Commit

Permalink
Sync eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
otomad committed Aug 5, 2024
1 parent 90382fa commit 18fe289
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default [
"@stylistic/no-tabs": "off",
"no-empty": ["error", { allowEmptyCatch: true }],
"no-constant-condition": ["error", { checkLoops: false }],
eqeqeq: ["error", "always", { null: "ignore" }],
"eqeqeq": ["error", "always", { null: "ignore" }],
"prefer-const": ["error", { destructuring: "all" }],
"for-direction": "error",
"getter-return": "error",
Expand All @@ -85,13 +85,13 @@ export default [
"no-unreachable": "warn",
"use-isnan": "error",
"valid-typeof": "error",
curly: ["error", "multi"],
"curly": ["error", "multi"],
"no-lonely-if": "off",
"dot-notation": ["error"],
"guard-for-in": "error",
"no-extra-label": "error",
"no-extra-label": "off",
"require-await": "error",
yoda: "error",
"yoda": "error",
"@stylistic/block-spacing": "error",
"@stylistic/func-call-spacing": ["error", "never"],
"@stylistic/computed-property-spacing": ["error", "never"],
Expand Down Expand Up @@ -132,12 +132,12 @@ export default [
"@stylistic/no-trailing-spaces": ["error", { skipBlankLines: true }],
"one-var": "off",
"@stylistic/arrow-parens": ["error", "as-needed"],
camelcase: "off",
"camelcase": "off",
"@stylistic/spaced-comment": ["error", "always", {
exceptions: ["+", "-", "*", "/"],
markers: ["/", "!", "@", "#", "#region", "#endregion"],
}],
radix: "error", // parseInt 必须要指明是十进制。
"radix": "error", // parseInt 必须要指明是十进制。
"no-self-assign": "off",
"no-debugger": "warn",
"no-use-before-define": "off",
Expand Down

0 comments on commit 18fe289

Please sign in to comment.