Skip to content

Commit

Permalink
Allow number in '@typescript-eslint/restrict-template-expressions'
Browse files Browse the repository at this point in the history
  • Loading branch information
studnitz committed Apr 19, 2024
1 parent 8913f8a commit aaefa3e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-gorillas-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clickbar/eslint-config-typescript': minor
---

Allow number in '@typescript-eslint/restrict-template-expressions'
4 changes: 4 additions & 0 deletions packages/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ module.exports = {
'error',
{ prefer: 'type-imports', disallowTypeAnnotations: false },
],
'@typescript-eslint/restrict-template-expressions': [
'error',
{ allowNumber: true },
],

// handled by unused-imports/no-unused-imports
'@typescript-eslint/no-unused-vars': 'off',
Expand Down

0 comments on commit aaefa3e

Please sign in to comment.