How to exclude documentation folder from eslint

156 Views Asked by At

I am creating documentation in a React app (using web-pack) by running the following command,

jsdoc src -r -d docs

This creates a folder on the root of the app called docs.

However when I run npm test sometest.test.js, eslint runs before the test and throws a long list of errors because it runs on the docs folder. I have tried excluding docs folder from eslint by adding it in the .eslintignore file like in the example shared below.

.eslintignore

docs/*

But still I see a long list of errors created by eslint on the docs folder. Errors shown below,

3:7 error unnecessary escape character: \> no-useless-escape
...

How can I fix this? Thank you

0

There are 0 best solutions below