hugomrdias / prettier-stylelint

code > prettier > stylelint > formatted code
MIT License
175 stars 29 forks source link

.stylelintrc rules not applied #11

Open artemartemov opened 6 years ago

artemartemov commented 6 years ago

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.

montchr commented 6 years ago

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.

Samic8 commented 6 years ago

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

rmlevangelio commented 4 years ago

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