-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to ts-ignore a default import
When importing package.json outside srcDir, TypeScript will fail checks even though compiled JS will work fine. Annotating the import with @ts-ignore, and using eslint-disable-line to prevent import reordering from separating the ts-ignore comment from the line being ignored, allows us to suppress these errors without reorganizing the generated module and without postprocessing the generator output.
- Loading branch information
1 parent
c6f19cd
commit dd1ef82
Showing
3 changed files
with
65 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters