Skip to content

Commit

Permalink
Merge pull request #1860 from mightyiam/@typescript-eslint/prefer-reg…
Browse files Browse the repository at this point in the history
…exp-exec

feat!: @typescript-eslint/prefer-regexp-exec
  • Loading branch information
mightyiam authored Oct 26, 2024
2 parents 91ff84f + de6da5e commit af00ad3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ export const tseslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
'@typescript-eslint/prefer-promise-reject-errors': ['error'],
'@typescript-eslint/prefer-readonly': ['error'],
'@typescript-eslint/prefer-reduce-type-parameter': ['error'],
'@typescript-eslint/prefer-regexp-exec': ['error'],
'@typescript-eslint/prefer-return-this-type': ['error'],
'@typescript-eslint/promise-function-async': ['error'],
'@typescript-eslint/require-array-sort-compare': [
Expand Down
1 change: 1 addition & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ export const expectedTseslintRules: Record<
'@typescript-eslint/prefer-promise-reject-errors': ['error'],
'@typescript-eslint/prefer-readonly': ['error'],
'@typescript-eslint/prefer-reduce-type-parameter': ['error'],
'@typescript-eslint/prefer-regexp-exec': ['error'],
'@typescript-eslint/prefer-return-this-type': ['error'],
'@typescript-eslint/promise-function-async': ['error'],
'@typescript-eslint/require-array-sort-compare': [
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 @@ -181,7 +181,6 @@ export const promiseRulesToConsider = [
]

export const tseslintRulesToConsider = [
'@typescript-eslint/prefer-regexp-exec',
'@typescript-eslint/prefer-string-starts-ends-with',
'@typescript-eslint/require-await',
'@typescript-eslint/switch-exhaustiveness-check',
Expand Down

0 comments on commit af00ad3

Please sign in to comment.