Skip to content

Commit

Permalink
fix: allow prefixes on parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Feb 6, 2023
1 parent 26d73eb commit d133805
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/plugins/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ export const settings: Linter.Config = {
leadingUnderscore: "allow",
trailingUnderscore: "forbid",
},
{
selector: "variableLike",
filter: {
regex: "_",
match: true,
},
format: ["camelCase", "PascalCase"],
prefix: ["m_", "M_"],
leadingUnderscore: "allow",
trailingUnderscore: "forbid",
},
{
selector: "variableLike",
format: ["camelCase", "PascalCase"],
Expand Down

0 comments on commit d133805

Please sign in to comment.