Skip to content

Commit

Permalink
fix: Allow leading underscores in parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Dec 12, 2022
1 parent 25af714 commit 68992a6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions base.json
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@
"error",
{
"enforceInMethodNames": true,
"enforceInClassFields": true,
"allowFunctionParams": false
"enforceInClassFields": true
}
],
"no-unneeded-ternary": ["error", { "defaultAssignment": false }],
Expand Down
8 changes: 6 additions & 2 deletions ts-for-js.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
"format": ["strictCamelCase", "UPPER_CASE"]
},
{
"selector": "function",
"format": ["strictCamelCase", "StrictPascalCase"]
"selector": ["variableLike"],
"format": ["strictCamelCase"]
},
{
"selector": ["typeLike"],
Expand All @@ -75,6 +75,10 @@
"selector": ["enumMember"],
"format": ["UPPER_CASE"]
},
{
"selector": ["parameter"],
"leadingUnderscore": "allow"
},
{
"selector": ["variable", "parameter", "accessor"],
"types": ["boolean"],
Expand Down

0 comments on commit 68992a6

Please sign in to comment.