Closed Rigellute closed 4 years ago
This PR breaks Electron - most likely due to the changes from:
require("electron")
to import {...} from "electron"
TypeError: fs.existsSync is not a function
We ideally need to add a check that checks that the Netlify preview has actually managed to deploy correctly
This upgrade introduced around 20 errors and 30 warnings.
The errors were mostly related to using "banned" types such as
object | Function
. I've fixed all the errors.The warnings were mostly
I've fixed all but one: the return type of useToolTip (which looks insane). I'm not sure what to do with this one, and want to discuss with the team.
We may want to suppress the
explicit-module-boundary-types
warning anyway?Overall, I'd say this upgrade improves the code quality in general.