Skip to content

Commit

Permalink
fix: tweak naming-convention
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Apr 4, 2022
1 parent 1632fb5 commit 1df2ea5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/plugins/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ export const settings: Linter.Config = {
leadingUnderscore: "allow",
trailingUnderscore: "forbid",
},
{
selector: "variableLike",
format: ["camelCase", "PascalCase"],
leadingUnderscore: "allow",
trailingUnderscore: "forbid",
},
{
selector: "variable",
format: ["camelCase", "PascalCase", "UPPER_CASE"],
Expand All @@ -85,24 +91,14 @@ export const settings: Linter.Config = {
trailingUnderscore: "forbid",
modifiers: ["const"],
},
{
selector: "variableLike",
format: ["camelCase", "PascalCase"],
leadingUnderscore: "allow",
trailingUnderscore: "forbid",
},
{
selector: "memberLike",
format: ["camelCase", "PascalCase", "UPPER_CASE"],
prefix: ["m_", "M_"],
},
{
selector: "objectLiteralProperty",
format: null,
},
{
selector: "objectLiteralMethod",
format: null,
selector: ["classMethod", "typeMethod"],
format: ["camelCase", "PascalCase", "UPPER_CASE"],
},
{
selector: "enumMember",
Expand All @@ -116,6 +112,10 @@ export const settings: Linter.Config = {
leadingUnderscore: "forbid",
trailingUnderscore: "forbid",
},
{
selector: ["objectLiteralProperty", "objectLiteralMethod"],
format: null,
},
],
"@typescript-eslint/no-confusing-void-expression": [
"error",
Expand Down

0 comments on commit 1df2ea5

Please sign in to comment.