Skip to content

Commit

Permalink
feat: @typescript-eslint/prefer-return-this-type
Browse files Browse the repository at this point in the history
BREAKING CHANGE: add rule @typescript-eslint/prefer-return-this-type
  • Loading branch information
mightyiam committed Dec 16, 2023
1 parent 83645ed commit d987ba3
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 @@ -257,6 +257,7 @@ test('export', (t): void => {
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
'@typescript-eslint/prefer-return-this-type': 'error',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: false }],
Expand Down Expand Up @@ -481,7 +482,6 @@ test('all plugin rules are considered', (t) => {
'prefer-namespace-keyword',
'prefer-readonly-parameter-types',
'prefer-regexp-exec',
'prefer-return-this-type',
'prefer-string-starts-ends-with',
'sort-type-constituents',
'sort-type-union-intersection-members',
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ const config: Linter.Config = {
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
'@typescript-eslint/prefer-return-this-type': 'error',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': ['error', { ignoreStringArrays: true }],
Expand Down

0 comments on commit d987ba3

Please sign in to comment.