youwe-magento2-less-linter
v1.1.3
Published
This module is used to lint all *.less* files in Youwe themes and list Code convention errors
Downloads
9
Readme
Youwe Magento 2 less linter
This module is used to lint all .less files in Youwe themes and list Code convention errors
Ruleset
All applied rules can be viewed here
Usage
- Install module
npm i -g youwe-magento2-less-linter
- in project root (from where your project app folter is) run
youwe-lint
Extras
- to show full file path instead of only the filename use
youwe-lint -p
- file mask for getting the files list is app/design/frontend/Youwe/**/web/css/source/**/*.less. If you want to specify files you'd like to lint use -m param.
This will change file mask to app/design/frontend/Youwe/**/web/css/source/**/filename.less
youwe-lint -m filename.less
- each param must be supplied separately
youwe-lint -p -m *filename.less