stylelint-scss
stylelint-scss copied to clipboard
Imports blacklist
It would be great to allow conditional blocking of certain imports from certain paths just like this one: https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-restricted-paths.md
For example:
- node_modules/lib
- colors.scss
- index.scss
- src/app
app
should not import colors.scss
from lib
, but can import index.scss
, lib
should not import anything from app
.
Sounds quite good, but I need to look at the eslint rule to see how it works :)
I guess even simple regex with from
and to
would be enough. Probably it may require path resolution though.
Bumping this issue as this is a really old issue. I raised the same issue in stylelint repo.