meta: specify stricter @typescript-eslint/naming-convention rule

The current codebase already is compliant.
This commit is contained in:
Xymorot 2021-01-05 16:51:05 +01:00
parent 597f9aaee0
commit ac7eb61515
1 changed files with 27 additions and 1 deletions

View File

@ -116,6 +116,31 @@
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "default",
"format": ["camelCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allow"
},
{
"selector": ["variable", "enumMember"],
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allow"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "function",
"modifiers": ["exported"],
"format": ["camelCase", "PascalCase"]
},
{
"selector": "objectLiteralProperty",
"format": null
},
{
"selector": "interface",
"format": ["PascalCase"],
@ -146,7 +171,8 @@
"rules": {
"@typescript-eslint/class-name-casing": "off",
"@typescript-eslint/typedef": "off",
"@typescript-eslint/explicit-member-accessibility": "off"
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/naming-convention": "off"
}
},
{