Skip to content

Commit

Permalink
feat: ✨ allow numbers for restrict-template-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Apr 11, 2024
1 parent be98e3c commit 726264d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/configs/__snapshots__/typescript.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31714,6 +31714,12 @@ If your function does not access \`this\`, you can annotate it with \`this: void
},
},
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{
"allowNumber": true,
},
],
},
},
{
Expand Down
4 changes: 4 additions & 0 deletions src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const typescriptConfig = (options: TypescriptOptions) => {
"error",
{ checksVoidReturn: { attributes: false } },
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{ allowNumber: true },
],
},
},
{
Expand Down

0 comments on commit 726264d

Please sign in to comment.