IssueRaiser

Support @ts-ignore for specific errors

**TypeScript Version:** 2.6.0-dev.20171011 **Code** ```ts function countDown(n: number): void { switch (n) { // @ts-ignore case 1: console.log("1"); // intentional fall through case 0: console.log("0"); } } ``` **Expected behavior:** Ability to make `ts-ignore` apply to the `--noFallthroughCasesInSwitch` error but not to other errors. **Actual behavior:** `case "1":` would also compile.

Posted by ghost on Oct 12, 2017, 7:23 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

support (Other)

Support @ts-ignore for specific errors

ghostOct 12, 2017, 7:23 PM

**TypeScript Version:** 2.6.0-dev.20171011 **Code** ```ts function countDown(n: number): void { switch (n) { // @ts-ignore case 1: console.log("1"); // intentional fall through case 0: console.log("0"); } } ``` **Expected behavior:** Ability to make `ts-ignore` apply to the `--noFallthroughCasesInSwitch` error but not to other errors. **Actual behavior:** `case "1":` would also compile.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue