Skip to content

Commit

Permalink
feat!: @typescript-eslint/related-getter-setter-pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Nov 23, 2024
1 parent 2c35449 commit 586c4bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/plugin-usage/typescript-eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ const usage: PluginUsage = {
{ allowSingleElementEquality: 'never' },
],
'promise-function-async': ['error'],
'related-getter-setter-pairs': ['error'],
'require-array-sort-compare': ['error', { ignoreStringArrays: true }],
'restrict-plus-operands': ['error', { skipCompoundAssignments: false }],
'restrict-template-expressions': ['error', { allowNumber: true }],
Expand Down
2 changes: 2 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ export const expectedTseslintRules: Record<
{ allowSingleElementEquality: 'never' },
],
'@typescript-eslint/promise-function-async': ['error'],

'@typescript-eslint/related-getter-setter-pairs': ['error'],
'@typescript-eslint/require-array-sort-compare': [
'error',
{ ignoreStringArrays: true },
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ export const rulesToConsider: Record<string, string[]> = {
'promise/valid-params',
],
'@typescript-eslint': [
'@typescript-eslint/related-getter-setter-pairs',
'@typescript-eslint/require-await',
'@typescript-eslint/use-unknown-in-catch-callback-variable',
],
Expand Down

0 comments on commit 586c4bf

Please sign in to comment.