chore(lint): 禁用 TypeScript 类型构成排序规则
- 添加 '@typescript-eslint/sort-type-constituents': 'off' 配置 - 允许类型定义中的成员按需排列而不强制排序 - 避免因类型排序导致的代码风格冲突
This commit is contained in:
@ -72,6 +72,8 @@ export default defineConfig(
|
||||
'@typescript-eslint/consistent-type-imports': 'off',
|
||||
// 允许未使用的变量 (MikroORM 的特殊属性)
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
// 允许类型构成排序
|
||||
'@typescript-eslint/sort-type-constituents': 'off',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user