Skip to content

Commit

Permalink
feat: @typescript-eslint/consistent-generic-constructors
Browse files Browse the repository at this point in the history
BREAKING CHANGE: @typescript-eslint/consistent-generic-constructors
  • Loading branch information
mightyiam committed Jan 19, 2023
1 parent 4c76a6b commit 0248ed7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ test('export', (t): void => {
tuples: 'ignore'
}],
'@typescript-eslint/comma-spacing': ['error', { before: false, after: true }],
'@typescript-eslint/consistent-generic-constructors': ['error', 'constructor'],
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
'@typescript-eslint/consistent-type-assertions': [
'error',
Expand Down Expand Up @@ -420,7 +421,6 @@ test('all plugin rules are considered', (t) => {
// and then fail upon plugin upgrades where new rules are released.
const notYetConsideredRules: string[] = [
'class-literal-property-style',
'consistent-generic-constructors',
'consistent-type-exports',
'consistent-type-imports',
'default-param-last',
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const config: Linter.Config = {
generics: 'ignore',
tuples: 'ignore'
}],
'@typescript-eslint/consistent-generic-constructors': ['error', 'constructor'],
'@typescript-eslint/consistent-indexed-object-style': ['error', 'record'],
'@typescript-eslint/consistent-type-assertions': [
'error',
Expand Down

0 comments on commit 0248ed7

Please sign in to comment.