joe223 / stylelint-ignore-issue

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stylelint-ignore-issue

stylelint/stylelint#4134

Reproduce

$ npm install
$ npm start

What we expected?  

index.css is not supposed to be lint according to .stylelintignore if we set ignorePath in .postcssrc.js or not.

Actual results

├── index.1.css
└── index.css

Stylelint lint all of theme.

Speculate

https://github.com/stylelint/stylelint/blob/0fb8b6d561ca59830cb6d66addf588cfe6169ff1/lib/postcssPlugin.js#L101

I think it's because stylelint postcss plugin did not resolve .stylelintignore file.

Is it a historical design?

About


Languages

Language:JavaScript 86.1%Language:CSS 13.9%