Skip to content

Commit

Permalink
feat!: @typescript-eslint/prefer-string-starts-ends-with
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Oct 26, 2024
1 parent 79e3ef5 commit e8e262d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,10 @@ export const tseslintRules: Record<string, TSESLint.SharedConfig.RuleEntry> = {
'@typescript-eslint/prefer-reduce-type-parameter': ['error'],
'@typescript-eslint/prefer-regexp-exec': ['error'],
'@typescript-eslint/prefer-return-this-type': ['error'],
'@typescript-eslint/prefer-string-starts-ends-with': [
'error',
{ allowSingleElementEquality: 'never' },
],
'@typescript-eslint/promise-function-async': ['error'],
'@typescript-eslint/require-array-sort-compare': [
'error',
Expand Down
4 changes: 4 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ export const expectedTseslintRules: Record<
'@typescript-eslint/prefer-reduce-type-parameter': ['error'],
'@typescript-eslint/prefer-regexp-exec': ['error'],
'@typescript-eslint/prefer-return-this-type': ['error'],
'@typescript-eslint/prefer-string-starts-ends-with': [
'error',
{ allowSingleElementEquality: 'never' },
],
'@typescript-eslint/promise-function-async': ['error'],
'@typescript-eslint/require-array-sort-compare': [
'error',
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-string-starts-ends-with',
'@typescript-eslint/require-await',
'@typescript-eslint/switch-exhaustiveness-check',
'@typescript-eslint/unified-signatures',
Expand Down

0 comments on commit e8e262d

Please sign in to comment.