If you use a build tool that includes type checking along with bundling (e.g. webpack + ts-loader without transpileOnly, create-react-app), do you do so only on build or also during development? Why not just run tsc/flow as a separate build step in CI, and in your IDE for dev?
-
-
Also worth mentioning that editors will usually only show errors in the files you have open—relying on your editor for dev errors would punt some horrible problems down the road, to when you're finally ready to publish.
-
What about tests? Should a bundler run them for you too? Tests are another form of code checking... Where do you draw the line?
- 2 more replies
New conversation -
-
-
create-react-app has good prior art for showing lint errors as a seamless part of the packaging experience. I don't know where I fall on the spectrum of ignorable errors since I'm undecided if there should even be separation between "warnings" and "errors".
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
yeah editor not being configured when contributing to someone else's project is a fair point
-
Or even my own project... le sigh
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 