matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

Issues with cli #250

Closed trainiac closed 7 years ago

trainiac commented 7 years ago

Thanks for this great tool. I'm using version 5.0.3 and I'm trying to recursively fix all .css and .pcss files in my repository but it appears the CLI options are not working as expected.

$ stylefm -i .stylelintignore -c .stylelintrc -r client/**/*.{css,pcss}

The .stylelintignore file contains the following which works with stylelint:

**/build/**
**/node_modules/**
**/dist/**
**/coverage/**

What I am finding is that the instructions from the .stylelintignore file are being ignored and fixes are being applied to files in node_modules and stylefmt is only finding .css files and not .pcss files.

Am I doing something wrong?

matype commented 7 years ago

@trainiac This issue seems be the same with https://github.com/morishitter/stylefmt/issues/223#issuecomment-263537119 . Please try it.

trainiac commented 7 years ago

the glob pattern needed quotes! Thank you