microsoft / microsoft/TypeScript
tsconfig - Ignore errors by ids
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
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:
{
"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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the tsconfig.json compilerOptions proposal and the diagnostic IDs shown in the issue, including 2403 and 2686. Determine how a configuration would identify diagnostics to suppress and verify that the listed errors no longer appear while other diagnostics remain visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100