Skip to content

Commit

Permalink
fix: allow underscore in variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
Rei-x committed Dec 17, 2024
1 parent fb1d618 commit 62b8df1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/eslint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ const adonisConfig: ConfigWithExtends[] = [
{
selector: ["enum", "enumMember", "class", "interface", "typeLike"],
format: ["PascalCase"],
leadingUnderscore: "allow",
trailingUnderscore: "allow",
},
{
selector: ["classProperty", "classMethod", "method", "variableLike"],
format: ["camelCase"],
leadingUnderscore: "allow",
trailingUnderscore: "allow",
},
{
selector: "variable",
Expand Down

0 comments on commit 62b8df1

Please sign in to comment.