Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-2273

Use a more recent version of JSHint to verify our JavaScript code

    XMLWordPrintable

Details

    • 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

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: