jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.96k stars 513 forks source link

excludeFiles: exclude project except several directories #2194

Closed DenJel7 closed 8 years ago

DenJel7 commented 8 years ago

I am trying to exclude all of my project in .jscsrc with the exception of several subdirectories. My .jscsrc is in the root directory. I have read many issues about this, but haven't found an answer.

I'd like to do something like this:

excludeFiles: ["/**", "!src/ui/**", "!src/Applications/**"] In .eslintignore, this works. I don't understand how the glob patterns work in JSCS config.

Can you explain to me what my mistake is?

markelog commented 8 years ago

"/**",

You probably need to removed the first slash