Skip to content

Commit 17b8766

Browse files
committed
allow numbers in string literals
1 parent feb7cf0 commit 17b8766

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ts.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,16 @@ module.exports = {
4444
],
4545
'@typescript-eslint/member-delimiter-style': 'off',
4646
'@typescript-eslint/explicit-function-return-type': 'off',
47+
'@typescript-eslint/restrict-template-expressions': [
48+
'error',
49+
{
50+
'allowNumber': true,
51+
'allowNullish': false,
52+
'allowBoolean': false,
53+
'allowRegExp': false,
54+
'allowNever': false,
55+
}
56+
],
4757
'import/order': [
4858
'error',
4959
{

0 commit comments

Comments
 (0)