JS syntax fixes, take 2
Adapted from !306 (closed) this removes all linting errors from JS code within GJS with eslint --fix
and adds new rules (with rationale). Hopefully this will get us to a consistent set of rules that the CI can enforce, and contributors can follow the style of the surrounding code.