Skip to content

Commit

Permalink
Update TypeScript ESLint rule to warn for future errors (#93)
Browse files Browse the repository at this point in the history
* Update @typescript-eslint/restrict-template-expressions to warn with future error notice

* Change files

* reduce verbosity

---------

Co-authored-by: Anmol Shrestha <[email protected]>
  • Loading branch information
anmolshres98 and anmolshres98 authored Jan 16, 2025
1 parent 7d031dd commit 838d85f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "Update @typescript-eslint/restrict-template-expressions to warn with future error notice",
"packageName": "@itwin/eslint-plugin",
"email": "[email protected]",
"dependentChangeType": "patch"
}
7 changes: 6 additions & 1 deletion dist/configs/itwinjs-recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,12 @@ module.exports =
"@typescript-eslint/promise-function-async": "error",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/restrict-template-expressions": [
"warn",
{
"message": "This rule will be set to error in the next major release."
}
],
"@typescript-eslint/triple-slash-reference": "error",
"@typescript-eslint/typedef": "off",
"@typescript-eslint/unbound-method": "error",
Expand Down

0 comments on commit 838d85f

Please sign in to comment.