mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🧑💻 优化 rules
This commit is contained in:
@@ -21,6 +21,8 @@ plugins:
|
|||||||
- vue
|
- vue
|
||||||
- prettier
|
- prettier
|
||||||
rules:
|
rules:
|
||||||
|
# normal
|
||||||
|
array-callback-return: warn
|
||||||
# TypeScript
|
# TypeScript
|
||||||
"@typescript-eslint/strict-boolean-expressions": off
|
"@typescript-eslint/strict-boolean-expressions": off
|
||||||
"@typescript-eslint/consistent-type-assertions":
|
"@typescript-eslint/consistent-type-assertions":
|
||||||
@@ -32,5 +34,6 @@ rules:
|
|||||||
format: ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"]
|
format: ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"]
|
||||||
leadingUnderscore: "allow"
|
leadingUnderscore: "allow"
|
||||||
trailingUnderscore: "allow"
|
trailingUnderscore: "allow"
|
||||||
|
"@typescript-eslint/no-non-null-assertion": warn
|
||||||
# Vue
|
# Vue
|
||||||
"vue/multi-word-component-names": off
|
"vue/multi-word-component-names": off
|
||||||
|
|||||||
Reference in New Issue
Block a user