The javascript code for H2 has varying code styles. This can make the code hard to read and discourage new contributors.
There is inconsistent semicolon usage, mixed let and const for importing variables, and mixed function declarations and expressions. I have also come across ternary conditional operators being used as statements instead of ifs.
The javascript code for H2 has varying code styles. This can make the code hard to read and discourage new contributors.
There is inconsistent semicolon usage, mixed let and const for importing variables, and mixed function declarations and expressions. I have also come across ternary conditional operators being used as statements instead of ifs.
These differences are most notable in the main.js createWindow and createMenuTray functions.
I propose that a linter should be added, probably ESLint.