Skip to content

Commit

Permalink
Improved the regex for the ts-expect-error rule to match the new fo…
Browse files Browse the repository at this point in the history
…rmat of TypeScript error codes

Signed-off-by: Jaid <[email protected]>
  • Loading branch information
Jaid committed Sep 26, 2024
1 parent c153e63 commit 33975bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/segments/typescript/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const typescriptRules: Linter.Config[`rules`] = {
"no-duplicate-type-constituents": warn,
"ban-ts-comment": [warn,
{
"ts-expect-error": { descriptionFormat: '^ TS\d+' },
"ts-expect-error": { descriptionFormat: '^ +(ts\\(\\d+\\)|TS\\d+)( .+$|$)' },
"ts-ignore": true,
"ts-nocheck": false,
"ts-check": false
Expand Down

0 comments on commit 33975bc

Please sign in to comment.