Skip to content

Commit

Permalink
Merge branch 'master' into jsdoc-indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele De Cupis committed Apr 14, 2021
2 parents e5865bb + a548178 commit 6d6b707
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pagopa/eslint-config",
"version": "1.1.1",
"version": "1.2.0",
"main": "strong.js",
"repository": "git@github.com:pagopa/eslint-rules.git",
"license": "MIT",
Expand Down
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 6d6b707

Please sign in to comment.