Details
-
Task
-
Resolution: Fixed
-
Major
-
13.7
-
None
-
Unknown
-
N/A
-
N/A
-
Description
We are currently using the jshint-maven-plugin to ensure the quality of our JavaScript code. The biggest problem we have with it is that it uses an old version of JSHint which doesn't support the ES6 syntactic sugar. This prevents us from using modern JavaScript syntax. The version of JSHint used by the plugin is embedded / hardcoded so we can't use a more recent version. Unfortunately this plugin is not maintained anymore (open PRs and no commits in 7 years) so we have two options:
- look for an alternative maven plugin: I couldn't find one; note that ESLint is becoming the standard for JavaScript quality checks but there's no maven plugin available; using the frontend-maven-plugin with Node.js is very cumbersome.
- fork the jshint-maven-plugin and make it work with a more recent version of JSHint
It seems the second option is the only viable option right now (it's easier to fix the jshint-maven-plugin than to write a new plugin from scratch for ESLint).
Attachments
Issue Links
- blocks
-
XWIKI-18860 Cleanup and integrate the Netflux front-end (realtime-netflux-frontend)
- Closed
-
XWIKI-18973 Simplify the way JavaScript code loads translation messages
- Closed