Skip to content

Commit

Permalink
fix: eslint: enforce that private members are prefixed with an unders…
Browse files Browse the repository at this point in the history
…core (#397)
  • Loading branch information
macalinao committed Dec 9, 2021
1 parent afbd5c5 commit 1a50afa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/eslint-config/lib/eslint-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,15 @@ module.exports = {
argsIgnorePattern: "^_",
},
],
// Enforce that private members are prefixed with an underscore
"@typescript-eslint/naming-convention": [
"error",
{
selector: "memberLike",
modifiers: ["private"],
format: ["camelCase"],
leadingUnderscore: "require",
},
],
},
};

0 comments on commit 1a50afa

Please sign in to comment.