IssueRaiser

tsconfig - Ignore errors by ids

I know that all errors in TypeScript are optional, it'd be nice if we could declare which error ids we want to ignore. I.E. In the `tsconfig.json`: ```json { "compilerOptions":{ "ignoreErrors":[2403,2686,...] } } ``` The reason I say this is because a lot of these errors are just irratating... Like the error: ``` 'L' refers to a UMD global, but the current file is a module. Consider adding an import instead. ``` This isn't an actual type error. It's a code style suggestion, and is entirely subjective unlike invalid type errors. I find many little 'errors' like this and they are deeply frustrating, as they just fill the error log with rubbish... Allow us to define which error ids we want to ignore, and this won't happen.

Posted by sancarn on Feb 18, 2019, 2:12 AM

Tags

Related issues

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

github (Other)

tsconfig - Ignore errors by ids

sancarnFeb 18, 2019, 2:12 AM

I know that all errors in TypeScript are optional, it'd be nice if we could declare which error ids we want to ignore. I.E. In the `tsconfig.json`: ```json { "compilerOptions":{ "ignoreErrors":[2403,2686,...] } } ``` The reason I say this is because a lot of these errors are just irratating... Like the error: ``` 'L' refers to a UMD global, but the current file is a module. Consider adding an import instead. ``` This isn't an actual type error. It's a code style suggestion, and is entirely subjective unlike invalid type errors. I find many little 'errors' like this and they are deeply frustrating, as they just fill the error log with rubbish... Allow us to define which error ids we want to ignore, and this won't happen.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue