atom-stylefmt icon indicating copy to clipboard operation
atom-stylefmt copied to clipboard

Settings from .stylelintrc?

Open anephew opened this issue 7 years ago • 7 comments

Hello!

I have .stylelintrc in the folder (with css file) with the following rules: { "rules": { "max-empty-lines": 1 } }

Also installed plugin https://atom.io/packages/linter-stylelint, and it picks up my settings.

I installed your plugin and I want to format my css file with the configuration from the .stylelintrc, but this does not happen - your plugin is formatting a document on some other settings (rules). Ie in my case - the blank lines are not corrected for example, but other rules are executed, although these rules do not have in my .stylelintrc

st1


What am I doing wrong?

Thank you

anephew avatar Apr 03 '17 02:04 anephew

Where do you put .stylelintrc on your project?

1000ch avatar Apr 03 '17 14:04 1000ch

@1000ch I wrote above:

I have .stylelintrc in the folder (with css file)

Anyway, I put .stylelintrc in the project root, the same result. Here screen:

image

Plugin https://atom.io/packages/linter-stylelint work good with my .stylelintrc (see screen at the bottom, it only setting for empty line), why your plugin not wanting to work with this setting? By what rules it makes formatting?

anephew avatar Apr 03 '17 14:04 anephew

Same issue here, it seems none of the empty line rules are working

I'm using "rule-empty-line-before": ["always"]

palashkaria avatar Apr 04 '17 23:04 palashkaria

@1000ch any answer to my question? Will fixed problem?

Thank you

anephew avatar Apr 19 '17 11:04 anephew

I ended up changing my config to match how stylefmt does it, which is actually what I was looking for, and works well with scss for now.

palashkaria avatar Apr 19 '17 15:04 palashkaria

Same issue here. Tried locating the .stylelintrc file in both the project root and also the root of the style I am trying to process. Restarted Atom both times just in case that was the case. Neither worked.

brianespinosa avatar Apr 27 '17 15:04 brianespinosa

So, extension not working

anephew avatar Apr 28 '17 23:04 anephew