prettier-stylelint icon indicating copy to clipboard operation
prettier-stylelint copied to clipboard

.stylelintrc rules not applied

Open artemartemov opened this issue 7 years ago • 3 comments

I seem to be having a few issues with this package. I am not 100% clear as to where certain rules are getting their fixes from but it seems it keeps ignoring certain things no matter what I change in the .stylelintrc file in the project directory.

Currently these are the contents:

{
    "plugins": [
        "stylelint-scss",
    ],
    "rules": {
        "indentation": "tab",
        "string-quotes": "single",
        "color-no-invalid-hex": true,
        "function-parentheses-space-inside": "always",
        "media-feature-parentheses-space-inside": "always",
        "selector-pseudo-class-parentheses-space-inside": "always",
        "max-empty-lines": 8,
        "scss/at-function-parentheses-space-before": "always"
    }
}

However when I am running the command, I am only seeing indentation fixes getting applied correctly. any rules such as function-parentheses-space-inside don't change the outcome no matter what settings I change.

artemartemov avatar Jan 24 '18 22:01 artemartemov

This is happening for me too. My config file isn't being used. I'm using the VS Code plugin but I've tested this using the CLI as well.

montchr avatar Feb 06 '18 02:02 montchr

It seems to respect my config when running via CLI. Running 0.4.2 Could not reproduce this

Samic8 avatar Feb 20 '18 22:02 Samic8

This also happening for me. I have .stylelintrc defined but it seems like it doesn't respect the rules I define. I just format my scss files with vscode. I have "editor.formatOnSave": true on my settings.json

rmlevangelio avatar Jun 05 '20 01:06 rmlevangelio