🔧 调整 eslint rules

This commit is contained in:
BTMuli
2023-06-30 10:21:51 +08:00
parent 594a880494
commit 6a2c5473e8

View File

@@ -21,16 +21,16 @@ plugins:
- vue
- prettier
rules:
# 严格布尔表达式
# TypeScript
"@typescript-eslint/strict-boolean-expressions": off
# 禁止使用 Object
"@typescript-eslint/consistent-type-assertions":
- warn
- assertionStyle: angle-bracket # 使用尖括号
# 命名规范
"@typescript-eslint/naming-convention":
- warn
- selector: variableLike
format: ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"]
leadingUnderscore: "allow"
trailingUnderscore: "allow"
# Vue
"vue/multi-word-component-names": off