Skip to content

Commit

Permalink
refactor: do not force accessibility modifier on class constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 30, 2019
1 parent 45375ae commit 72352f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/ts-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-member-accessibility": ["error"],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{ "overrides": { "constructors": "no-public" }}
],
"@typescript-eslint/explicit-function-return-type": ["error"]
}
}
Expand Down
5 changes: 4 additions & 1 deletion lib/ts-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/explicit-member-accessibility": ["error"],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{ "overrides": { "constructors": "no-public" }}
],
"@typescript-eslint/explicit-function-return-type": ["error"]
}
}
Expand Down

0 comments on commit 72352f1

Please sign in to comment.