Skip to content

Commit

Permalink
feat(eslint-config): add ts rule to enforce member accessibility in c…
Browse files Browse the repository at this point in the history
…lasses
  • Loading branch information
SimeonC committed Oct 22, 2024
1 parent e431173 commit d24e8ec
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/eslint-config/src/overrides/buildBaseTypescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ export const baseTypescriptRules: Linter.RulesRecord = {
},
],
'@tablecheck/prefer-shortest-import': 'error',
'@typescript-eslint/explicit-member-accessibility': [
'error',
{
accessibility: 'explicit',
overrides: {
constructors: 'no-public',
},
},
],
};

export function buildBaseTypescript<T extends Linter.RulesRecord>({
Expand Down

0 comments on commit d24e8ec

Please sign in to comment.