FEAT => 本次更新项目为:语法校验即可

This commit is contained in:
超级老白兔
2025-07-29 17:06:18 +08:00
parent 1c1062b235
commit dcb1c95215
2 changed files with 25 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ module.exports = {
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:prettier/recommended", // 这个配置会自动处理大部分冲突
],
parser: "@typescript-eslint/parser",
parserOptions: {
@@ -32,8 +32,29 @@ module.exports = {
"eol-last": "off",
"no-empty": "warn",
"prefer-const": "warn",
// 移除与Prettier冲突的规则
// 确保与 Prettier 完全兼容
"comma-dangle": "off",
"comma-spacing": "off",
"comma-style": "off",
"object-curly-spacing": "off",
"array-bracket-spacing": "off",
indent: "off",
quotes: "off",
semi: "off",
"arrow-parens": "off",
"no-multiple-empty-lines": "off",
"max-len": "off",
"space-before-function-paren": "off",
"space-before-blocks": "off",
"keyword-spacing": "off",
"space-infix-ops": "off",
"space-in-parens": "off",
"space-in-brackets": "off",
"object-property-newline": "off",
"array-element-newline": "off",
"function-paren-newline": "off",
"object-curly-newline": "off",
"array-bracket-newline": "off",
},
settings: {
react: {

View File

@@ -1,6 +1,6 @@
{
"semi": true,
"trailingComma": "es5",
"trailingComma": "all",
"singleQuote": false,
"printWidth": 80,
"tabWidth": 2,
@@ -10,4 +10,4 @@
"arrowParens": "avoid",
"jsxSingleQuote": false,
"quoteProps": "as-needed"
}
}