groupe-sii / sonar-web-frontend-reporters

This is a repo of SII continuous integration build system dedicated to Front-end webapps.
22 stars 10 forks source link

.eslintignore not read when generating eslint report #20

Closed raghav154 closed 7 years ago

raghav154 commented 7 years ago

I have .eslintrc and also .eslintignore file. The .eslintignore file is not being read by the sonar reporter. How do I specify ignorepaths/files in the .srreporterrc ? I need to specify multiple files/folders hence a way to point to .eslintignore while running ESLint would help

ValentinGot commented 7 years ago

Hi,

You can now add the .eslintignore path by specifying the ignorePath option.

e.g:

{
  "eslint": {
    "src": "src/**/*.js",
    "report": "reports/sonar/eslint.json",
    "rulesFile": ".eslintrc",
    "ignorePath": ".eslintignore"
  }
}