diff --git a/.changeset/itchy-gorillas-notice.md b/.changeset/itchy-gorillas-notice.md new file mode 100644 index 0000000..0cea71d --- /dev/null +++ b/.changeset/itchy-gorillas-notice.md @@ -0,0 +1,5 @@ +--- +'@clickbar/eslint-config-typescript': minor +--- + +Allow number in '@typescript-eslint/restrict-template-expressions' diff --git a/packages/typescript/index.js b/packages/typescript/index.js index 2a88367..2d4c4c8 100644 --- a/packages/typescript/index.js +++ b/packages/typescript/index.js @@ -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',