Skip to content

Commit

Permalink
add more specific naming rules
Browse files Browse the repository at this point in the history
  • Loading branch information
balanza committed Apr 13, 2021
1 parent ea098bc commit 8e74633
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion strong.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,29 @@ module.exports = {
}
],
"@typescript-eslint/member-ordering": "error",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "variable",
format: ["PascalCase", "camelCase", "UPPER_CASE"],
leadingUnderscore: "allow",
trailingUnderscore: "allow"
},
{
selector: "typeLike",
format: ["PascalCase"]
},
{
selector: "property",
format: ["PascalCase", "camelCase", "UPPER_CASE", "snake_case"],
leadingUnderscore: "allow",
trailingUnderscore: "forbid"
},
{
selector: "interface",
format: ["PascalCase"],
prefix: ["I"]
},
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
Expand Down

0 comments on commit 8e74633

Please sign in to comment.