matype / stylefmt

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

stylefmt ignores .stylelintrc #178

Open Bubbi opened 7 years ago

Bubbi commented 7 years ago

I am using the atom package stylefmt, but when formatting the css and scss code, it doesn't respect the .stylelintrc file in my project. It formats the files using standard rules of some kind.

I don't know if it actually reads the local .stylelintrc file and then just ignores some rules or if it uses a totally different config.

How can I see which config is used?

example of a thing that should be respected according to the .stylelintrc file: "color-hex-case": "upper",

But it always formats to lowercase.

If you need anything to debug or can help me debug, give feedback :-)

Bubbi commented 7 years ago

@paazmaya, hmm.. I've updated to the latest version and now it works a bit better, but still not fully..

Without having changed the .stylelintrc file, it now reads the beforementioned "color-hex-case": "upper",

But it seems like it still ignores some other rules defined in the file. among these, are:

"declaration-block-properties-order": "alphabetical",
"selector-list-comma-newline-after": "always",

I don't know if you need some debug info - if so, how do I get it?

Bubbi commented 7 years ago

By the way, I have tried to move the individual rules up to the top of the file, just in case that it was because of an error in the file. but they are still not being respected.

lkraav commented 7 years ago

Pretty sure this is a duplicate of either #157 and #214