Typescript errors aren't being reported
See original GitHub issue- [x ] I have read the contribution documentation for this project.
- [x ] I agree to follow the code of conduct that this project follows, as appropriate.
- [x ] I have searched the issue tracker for an issue that matches the one I want to file, without success.
Please describe your issue:
Hello,
In adapting one of my projects to use electron-forge I noticed I wasn’t receiving compile errors when I should be. Exploring the issue I found that projects created with the react-typescript template do not throw any kind of compile errors for typescript code through electron-forge start
or electron-forge lint
or even electron-forge make
.
I’ve got a test repository here that shows this in action. This repository was created using
electron-forge init --template=react-typescript
I’ve deliberately introduced compile errors by adding the line
const four:number = 'four';
to both the src/app.tsx and src/index.ts. These errors are never reported.
I’ve posted this issue here because I’m unfamiliar with the project and don’t know if this is relevant to the forge cli tool or its react-typescript template. If this needs to be resubmitted elsewhere please let me know.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top GitHub Comments
@paarthenon You can use
tslint
with the--type-check
option enabled 👍@paarthenon I’d just set up your
lint
task to runtsc
on the whole project