Skip to content

Commit 14e5589

Browse files
AmirrezaASafaeirad
authored andcommitted
feat: add @typescript-eslint/no-base-to-string rule
1 parent 22f7c09 commit 14e5589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/typescript.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ function typescript(options = {}) {
6868
: []),
6969
],
7070
'@typescript-eslint/no-array-constructor': 'error',
71-
'@typescript-eslint/no-base-to-string': 'off', // false negative
7271
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
7372
'@typescript-eslint/no-dupe-class-members': 'error',
7473
'@typescript-eslint/no-duplicate-enum-values': 'error',
@@ -156,6 +155,7 @@ function typescript(options = {}) {
156155
allowIndexSignaturePropertyAccess: true,
157156
},
158157
],
158+
'@typescript-eslint/no-base-to-string': 'error',
159159
'@typescript-eslint/no-confusing-void-expression': ['off', { ignoreArrowShorthand: true, ignoreVoidOperator: true }], // Annoying and conflict with @typescript-eslint/no-meaningless-void-operator
160160
'@typescript-eslint/no-duplicate-type-constituents': 'warn',
161161
'@typescript-eslint/no-for-in-array': 'error',

0 commit comments

Comments
 (0)