Skip to content

Commit

Permalink
ESLint - add rule to require underscores for private members
Browse files Browse the repository at this point in the history
  • Loading branch information
kat-ms committed Oct 28, 2021
1 parent dfe5c7a commit 5206bb5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
"import/prefer-default-export": "off",
"indent": ["warn", 2, { "SwitchCase": 1 }],
"max-len": ["warn", { "code": 100, "ignoreTemplateLiterals": true }],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "memberLike",
"modifiers": ["private"],
"leadingUnderscore": "require",
"format": ["camelCase"]
}
],
"no-underscore-dangle": "off",
"no-confusing-arrow": "off",
"no-param-reassign": "off",
Expand Down

0 comments on commit 5206bb5

Please sign in to comment.