rushstack icon indicating copy to clipboard operation
rushstack copied to clipboard

[heft] Add support for mapping TS Error codes to warnings in the `typescript.json` config file.

Open iclanton opened this issue 3 years ago • 2 comments

Summary

As mentioned in this issue (https://github.com/microsoft/rushstack/issues/3522), it would be useful to have this feature implemented: https://github.com/microsoft/rushstack/blob/main/apps/heft/src/plugins/TypeScriptPlugin/TypeScriptBuilder.ts#L780

Repro steps

N/A

Details

https://github.com/microsoft/rushstack/blob/main/apps/heft/src/plugins/TypeScriptPlugin/TypeScriptBuilder.ts#L780

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@rushstack/heft version? Current
Operating system? Any
Would you consider contributing a PR? Yes
Node.js version (node -v)? Any

iclanton avatar Jul 18 '22 18:07 iclanton

+1 I'm surprised the compiler itself doesn't provide this feature

octogonz avatar Jul 20 '22 17:07 octogonz

I've read somewhere that TS error codes aren't considered "stable". Found this comment right now: https://github.com/microsoft/TypeScript/issues/22011#issuecomment-384815956 but I think I saw a more elaborate one somewhere

Faithfinder avatar Jul 23 '22 03:07 Faithfinder