Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCan't ignore files #608
Comments
dcousens
added
the
question
label
Sep 1, 2016
This comment has been minimized.
This comment has been minimized.
jonathan-potter
commented
Sep 1, 2016
|
Sometimes you have to read code from projects that you do not control, so it would be nice to be able to turn this off. maybe |
This comment has been minimized.
This comment has been minimized.
|
To ignore a specific folder (say "public/js/ignoredlibrary"), you can add the following to "standard": {
"ignore": [
"public/js/ignoredlibrary/**/*.js"
]
}
This shouldn't matter. |
feross
closed this
Sep 10, 2016
This comment has been minimized.
This comment has been minimized.
|
Thanks @feross ! Actually, my mistake was to add that "standard" object into the "depencies" field of package.json ! I thought it was an option to add to the depency. I hope others are not as stupid as me :-) |
This comment has been minimized.
This comment has been minimized.
|
@mvaragnat No worries. Glad you got it figured out. |
mvaragnat commentedSep 1, 2016
This lib is great, thank you. However I ran into a small issue with one project. I read the readme, but I am not able to ignore files when running standar.
I would like to excluse a specific lib in /public/js/, but to illustrate I went as far as having the following block in package.json. In spite of that, standard runs on all files. Any idea of what I'm doing wrong?
Related question, how do you ignore files if standard is installed locally on the machine and not as a project dependency? I tried both options but the result is the same, files are not ignored.
Thanks for your help!