Skip to content

Commit

Permalink
feat: prevent undefined and [object Object] in strings
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Mar 2, 2020
1 parent 1f9aa06 commit 3747e24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ module.exports = {
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'never' },
],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/no-base-to-string': 'error',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-unnecessary-qualifier': 'error',
Expand All @@ -244,6 +245,7 @@ module.exports = {
'@typescript-eslint/prefer-nullish-coalescing': 'off', // https://github.com/typescript-eslint/typescript-eslint/issues/1265
'@typescript-eslint/type-annotation-spacing': 'off',
'@typescript-eslint/triple-slash-reference': 'error',
'@typescript-eslint/restrict-template-expressions': ['error', { allowNumber: true }],
'@typescript-eslint/return-await': 'error',
'@typescript-eslint/unbound-method': 'error',
'@typescript-eslint/unified-signatures': 'error',
Expand Down

0 comments on commit 3747e24

Please sign in to comment.