chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -59,9 +59,9 @@ module.exports = [
{
vars: 'all',
args: 'none', // function arguments should not force to match this rule.
argsIgnorePattern: '^_', // 规范允许下划线
ignoreRestSiblings: true, //使用rest语法如 `var { foo, ...rest } = data`) 忽略foo
destructuredArrayIgnorePattern: '^_', //结构数组允许使用_
argsIgnorePattern: '^_', // Specifications allow underlining
ignoreRestSiblings: true, //Use rest syntax (such as'var {foo,... rest} = data ') to ignore foo.
destructuredArrayIgnorePattern: '^_', //Structural arrays allow _
caughtErrors: 'none',
// "caughtErrorsIgnorePattern": "^e$"
},
@@ -314,7 +314,7 @@ module.exports = [
},
},
// TODO: 之前overides的内容后需可考虑直接合入上面标准配置
// TODO: The content of overides before can be considered to be directly integrated into the above standard configuration later
{
files: ['**/*.?(m|c)ts?(x)'],
rules: {
@@ -324,8 +324,8 @@ module.exports = [
fixStyle: 'inline-type-imports',
},
],
// 这些规则都是从 packages/config/.eslintrc.react.js 复制迁移过来
// 后续在做调整
// These rules are copied and migrated from packages/config/.eslintrc.react.js
// Adjustments are being made later.
'@typescript-eslint/no-redundant-type-constituents': 0,
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/no-unnecessary-condition': 0,
@@ -335,14 +335,14 @@ module.exports = [
'@typescript-eslint/explicit-function-return-type': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
// TODO: 后续开启
// TODO: Follow-up opening
// 'import/no-cycle': 'error',
'@typescript-eslint/prefer-string-starts-ends-with': 0,
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 0,
'@typescript-eslint/no-implied-eval': 0, // warning
// TODO: 打开下面这些配置
// TODO: Open the following configurations
// fix: https://stackoverflow.com/questions/63961803/eslint-says-all-enums-in-typescript-app-are-already-declared-in-the-upper-scope
// 'no-shadow': 'off',
// '@typescript-eslint/no-shadow': ['error'],
@@ -364,7 +364,7 @@ module.exports = [
// },
// ],
// complexity: ['error', { max: 15 }],
// 后面统一使用CustomError后 再开启
// After using CustomError uniformly later, open it again.
'@coze-arch/no-new-error': 'off',
},
},