mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🔧 调整 eslint rules
This commit is contained in:
@@ -21,16 +21,16 @@ plugins:
|
|||||||
- vue
|
- vue
|
||||||
- prettier
|
- prettier
|
||||||
rules:
|
rules:
|
||||||
# 严格布尔表达式
|
# TypeScript
|
||||||
"@typescript-eslint/strict-boolean-expressions": off
|
"@typescript-eslint/strict-boolean-expressions": off
|
||||||
# 禁止使用 Object
|
|
||||||
"@typescript-eslint/consistent-type-assertions":
|
"@typescript-eslint/consistent-type-assertions":
|
||||||
- warn
|
- warn
|
||||||
- assertionStyle: angle-bracket # 使用尖括号
|
- assertionStyle: angle-bracket # 使用尖括号
|
||||||
# 命名规范
|
|
||||||
"@typescript-eslint/naming-convention":
|
"@typescript-eslint/naming-convention":
|
||||||
- warn
|
- warn
|
||||||
- selector: variableLike
|
- selector: variableLike
|
||||||
format: ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"]
|
format: ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"]
|
||||||
leadingUnderscore: "allow"
|
leadingUnderscore: "allow"
|
||||||
trailingUnderscore: "allow"
|
trailingUnderscore: "allow"
|
||||||
|
# Vue
|
||||||
|
"vue/multi-word-component-names": off
|
||||||
|
|||||||
Reference in New Issue
Block a user