Skip to content

Commit

Permalink
change @typescript-eslint/restrict-template-expressions
Browse files Browse the repository at this point in the history
 - allow null, numbers and booleans
  • Loading branch information
burtek committed Jul 28, 2022
1 parent 4cda122 commit 7330d39
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eslint-config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,19 @@ module.exports = {
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-literal-enum-member': 'error',
'@typescript-eslint/prefer-nullish-coalescing': ['error'],
'@typescript-eslint/prefer-nullish-coalescing': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
'@typescript-eslint/prefer-regexp-exec': 'warn',
'@typescript-eslint/prefer-string-starts-ends-with': 'error',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/restrict-plus-operands': 'error',
'@typescript-eslint/restrict-template-expressions': 'error',
'@typescript-eslint/restrict-template-expressions': ['error', {
allowBoolean: true,
allowNumber: true,
allowNullish: true
}],
'@typescript-eslint/switch-exhaustiveness-check': 'error',
'@typescript-eslint/type-annotation-spacing': 'error',

Expand Down

0 comments on commit 7330d39

Please sign in to comment.