Utilize eslint/stylelint/etc on pre-commit git hook so that I, as a developer, get all linting errors (possibly most or some of them fixed automatically) before I submit my changes to gerrit just to learn after 20 minutes (average time for our build) to learn about a missing space.
Once T224398: Configure 'grunt fix' task for eslint on Wikibase.git is done, we can think of hooking one of the following combinations:
- have npm fix run alone as a pre-commit hook
- have npm test + fix run automatically
- only run npm test as part of the hook, developer runs grunt fix when needed
(Feedback is to be collected from other wikidata developers as to which is the best option)