"rules": { 5 "@typescript-eslint/no-explicit-any": "error", // 禁用any类型 6 "naming-convention 7 } 8 }x { "rules": { "@typescript-eslint/no-explicit-any": "error", // 禁用any类型 "naming-convention
ruleSet配置的规则集中特定的某些规则进行修改、去使能, 或者新增规则集以外的规则;ruleSet和rules共同确定了代码检查所应用的规则"rules":{ "@typescript-eslint/naming-convention
: T[P]; }; type LiteralBool = "true" | "false"; 原因主要有这么几点: 配合 naming-convention 规则(能够用于检查接口是否按照规范命名 ),我们能够在看见 IFoo 时立刻知道它是一个 接口,看见 Bar 时立刻知道它是一个类型别名,配置: { "@typescript-eslint/naming-convention": [
['@blueking/eslint-config-bk/tsvue3'], rules: { 'no-param-reassign': 0, '@typescript-eslint/naming-convention
}], // 命名规范 'camelcase': ['error', { properties: 'never' }], '@typescript-eslint/naming-convention
rules: { '@typescript-eslint/naming-convention': [ 'error', { selector: 'enum',
error', '@typescript-eslint/no-unsafe-return': 'error', // 命名规范 '@typescript-eslint/naming-convention