meta: specify stricter @typescript-eslint/naming-convention rule
The current codebase already is compliant.
This commit is contained in:
parent
597f9aaee0
commit
ac7eb61515
|
@ -116,6 +116,31 @@
|
||||||
"@typescript-eslint/no-empty-function": "off",
|
"@typescript-eslint/no-empty-function": "off",
|
||||||
"@typescript-eslint/naming-convention": [
|
"@typescript-eslint/naming-convention": [
|
||||||
"error",
|
"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",
|
"selector": "interface",
|
||||||
"format": ["PascalCase"],
|
"format": ["PascalCase"],
|
||||||
|
@ -146,7 +171,8 @@
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/class-name-casing": "off",
|
"@typescript-eslint/class-name-casing": "off",
|
||||||
"@typescript-eslint/typedef": "off",
|
"@typescript-eslint/typedef": "off",
|
||||||
"@typescript-eslint/explicit-member-accessibility": "off"
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
||||||
|
"@typescript-eslint/naming-convention": "off"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue