SnowdogApps / magento2-frontools

Set of front-end tools for Magento 2 based on Gulp.js
MIT License
430 stars 142 forks source link

How to run stylelint and sass lint on app/design theme only? #357

Closed pdenissen closed 5 years ago

pdenissen commented 5 years ago

Hi there,

How can I run the SASS and CSS listing on my custom theme in app/design/frontend only. I want to ignore the parent theme in vendor.

I'm trying this in the sasslint config:

files:
  ignore:
    - 'vendor/[VENDOR NAME]/**/*.scss'

Is it even possible? Thanks!

Igloczek commented 5 years ago

gulp sasslint --theme your_theme_name should do the trick for SASS linting. But there is no way to separate your theme from imported parent styles on CSS lint level, because it works on compiled CSS.

pdenissen commented 5 years ago

@Igloczek Thanks, that works for me.