diff --git a/eslint.config.js b/eslint.config.js index 7a9297e7..da4bc4d6 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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", @@ -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"], @@ -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",