eslint formatter to output JSON in a format compatible with sonarqube 7.4's new external analyzer feature
npm install eslint-formatter-sonarqubesonar-project.properties file to add the parameter sonar.externalIssuesReportPaths with one or more paths to reports that will be imported when a scan is run.
npm install eslint-formatter-sonarqube --save-dev
`
Once installed, pass the module as the formatter parameter when using eslint:
`
eslint -f node_modules/eslint-formatter-sonarqube -o ./sonar/result.json ./
``