change eslint rule: naming-convention

This commit is contained in:
全卓 2022-12-02 16:26:08 +08:00
parent 89e404adf3
commit d3947763b2
1 changed files with 11 additions and 2 deletions

View File

@ -9,12 +9,21 @@
"@typescript-eslint" "@typescript-eslint"
], ],
"rules": { "rules": {
"@typescript-eslint/naming-convention": "warn", "@typescript-eslint/naming-convention": [
"error",
{
"selector": "typeLike",
"format": [
"PascalCase"
]
}
],
"@typescript-eslint/semi": "warn", "@typescript-eslint/semi": "warn",
"curly": "warn", "curly": "warn",
"eqeqeq": "warn", "eqeqeq": "warn",
"no-throw-literal": "warn", "no-throw-literal": "warn",
"semi": "off" "semi": "off",
"camelcase": "off"
}, },
"ignorePatterns": [ "ignorePatterns": [
"out", "out",