Skip to content

Commit 654f9e9

Browse files
chore: enable prefer-string-starts-ends-with internally (typescript-eslint#9244)
1 parent 68791b8 commit 654f9e9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

eslint.config.mjs

+7-2
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ export default tseslint.config(
103103
// make sure we're not leveraging any deprecated APIs
104104
'deprecation/deprecation': 'error',
105105

106-
// TODO(#7130): Investigate changing these in or removing these from presets
106+
// TODO: https://github.com/typescript-eslint/typescript-eslint/issues/8538
107107
'@typescript-eslint/no-confusing-void-expression': 'off',
108-
'@typescript-eslint/prefer-string-starts-ends-with': 'off',
109108

110109
//
111110
// our plugin :D
@@ -142,6 +141,12 @@ export default tseslint.config(
142141
allowBitwiseExpressions: true,
143142
},
144143
],
144+
'@typescript-eslint/prefer-string-starts-ends-with': [
145+
'error',
146+
{
147+
allowSingleElementEquality: 'always',
148+
},
149+
],
145150
'@typescript-eslint/unbound-method': 'off',
146151
'@typescript-eslint/restrict-template-expressions': [
147152
'error',

0 commit comments

Comments
 (0)