Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Stylelint is not honoring .stylelintignore #112

Open
amazingrando opened this issue Aug 2, 2017 · 5 comments
Open

Stylelint is not honoring .stylelintignore #112

amazingrando opened this issue Aug 2, 2017 · 5 comments

Comments

@amazingrando
Copy link
Member

Problem: I have a repo with SCSS that isn't written to the Stylelint guidelines. I want to just ignore those files. (I don't have time to rewrite to make the files compliant.) I implemented .stylelintignore and this is not being honored.

Researching the issue turned up this, which states that Stylelint Gulp doesn't honor .stylelintignore. olegskl/gulp-stylelint#85

ccjjmartin added a commit to ccjjmartin/fourk that referenced this issue Aug 9, 2017
@ccjjmartin ccjjmartin mentioned this issue Aug 9, 2017
9 tasks
@ccjjmartin
Copy link
Collaborator

The above PR does not fix this issue (I incorrectly referenced this PR when it should have been 122)

@czinco
Copy link

czinco commented Sep 1, 2017

@amazingrando I've run into the same issue. Is there anyway to add some syntax to the .stylelintrc file to ignore the SCSS directories for now?

@amazingrando
Copy link
Member Author

@czinco I'll look into this today or Monday.

@LordRembo
Copy link

I've changed my local Gulp config file to ignore certain folders when validating in order to skip css from libraries but that's not a perfect solution of course.
There is also an option to completely disable linting using cssConfig.lint.enabled: false
but somehow that's not working in my theme.

@amazingrando
Copy link
Member Author

It looks like the fix for this is going to require a refactoring of the CSS tasks to split the linting into a separate task so we can control what gets linted separately.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants