Open alex-shamshurin opened 7 years ago
?? Can you provide more info please?
It simply does not see it and linting node_modules
Do you happen to use gulp-stylint to do the checking?
No, just CLI
Hmm not sure then. I see gulp-stylint rewriting the read method so stylintignore gets ignored. When I run locally, my ignore file is followed.
Could you run it directly without gulp?
I do and it follows the stylintignore rules. Its only when I use gulp that it ignores it
What version?
The latest 1.5.9
Happening the same here. I tried both, using . stylintignore
file and the inside package.json
and stylint
still tries to lint the files.
@alex-shamshurin after some debug it worked. What I did:
stylint app/styles/** -c ./.stylintrc
and in my package.json I have
"stylintignore": [ "app/styles/vendors" ],
And it worked for me. Now the stylint is ignoring the vendors
folder.
we're also seeing this - both on our local machines and in CI - this despite having
"stylintignore": ["node_modules"],
in package.json and node_modules
in a .stylintignore.
Worked for me adding the exclude:[] on the .stylintrc file.
Ex-> "exclude": ["resources/assets/stylus/vendor/*/", "node_modules/*/"],
The thing making the difference here is the "/*/" on the path...not sure why but you have to add it.
@hugomota Thanks for pointing me in the right direction, although I find your comment a bit confusing likely because of the markup. What worked for me was the following addition in .stylintrc
:
"exclude": [
"node_modules/**"
],
The two stars are necessary to include subdirectories and files within the node_modules
directory.
node_modules/