Skip to content

Commit

Permalink
BC-8200 - exclude entity-classes from explicit-member-accessibility r…
Browse files Browse the repository at this point in the history
…ule (#5379)

Adaption to avoid unneccessary public keywords in front of Entity-class properties.
  • Loading branch information
hoeppner-dataport authored Dec 5, 2024
1 parent 1aa919a commit 7b3fee5
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,24 @@ module.exports = {
],
},
},
{
files: ['apps/server/src/**/*.entity.ts'],
rules: {
'@typescript-eslint/explicit-member-accessibility': [
'warn',
{
accessibility: 'explicit',
overrides: {
accessors: 'no-public',
constructors: 'no-public',
methods: 'explicit',
properties: 'no-public',
parameterProperties: 'explicit',
},
},
],
},
},
],
},
],
Expand Down

0 comments on commit 7b3fee5

Please sign in to comment.