-
Notifications
You must be signed in to change notification settings - Fork 13.4k
allowUnreachableCode has to be turned off due to third party libraries. #10233
Copy link
Copy link
Closed
Labels
Design LimitationConstraints of the existing architecture prevent this from being fixedConstraints of the existing architecture prevent this from being fixedOut of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds
Metadata
Metadata
Assignees
Labels
Design LimitationConstraints of the existing architecture prevent this from being fixedConstraints of the existing architecture prevent this from being fixedOut of ScopeThis idea sits outside of the TypeScript language design constraintsThis idea sits outside of the TypeScript language design constraintsSuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a feature request:
I get the following error when I build my webpack project:
This is a problem in the
bluebirdnpm library.But I don't want to have errors in my build. So I have to add this to my tsconfig.json to get this error to turn off:
But that is kind of a shame, because I don't want to allow unreachable code in my code, I just don't want to see errors for unreachable code that is in my node_modules. (I can't change node_module files without messing up my autobuild.)
So:
I am seeing code in node_modules inspected for unreachable code.
What I would expect (or want) to see is that node_modules is excluded from the unreachable code inspection.
In case it matters, here is my tsconfig.json: