Skip to content

Commit 3747e24

Browse files
committed
feat: prevent undefined and [object Object] in strings
1 parent 1f9aa06 commit 3747e24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ module.exports = {
221221
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'never' },
222222
],
223223
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
224+
'@typescript-eslint/no-base-to-string': 'error',
224225
'@typescript-eslint/no-parameter-properties': 'off',
225226
'@typescript-eslint/no-require-imports': 'error',
226227
'@typescript-eslint/no-unnecessary-qualifier': 'error',
@@ -244,6 +245,7 @@ module.exports = {
244245
'@typescript-eslint/prefer-nullish-coalescing': 'off', // https://github.com/typescript-eslint/typescript-eslint/issues/1265
245246
'@typescript-eslint/type-annotation-spacing': 'off',
246247
'@typescript-eslint/triple-slash-reference': 'error',
248+
'@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }],
247249
'@typescript-eslint/return-await': 'error',
248250
'@typescript-eslint/unbound-method': 'error',
249251
'@typescript-eslint/unified-signatures': 'error',

0 commit comments

Comments
 (0)