Skip to content

Autofix not working #175

Open
Open
@sethjwilliamson

Description

Hi, not sure if I've read documentation wrong, if I've set it up wrong, or there's an actual issue with the plugin. I've been trying to get autofix to work but it's only showing that errors are there. --fix does not fix the issues. I also want to note that the issues from the base stylelint autofixing is working.

Here is my .stylelintrc.json:

{
  "extends": [
    "stylelint-config-standard"
  ],
  "plugins": [
    "stylelint-order"
  ],
  "rules": {
    "property-no-vendor-prefix": null,
    "order/properties-alphabetical-order": true
  }
}

The command I run is
stylelint "**/*.css" --fix

And the response is

src/App.css
 209:3  ✖  Expected box-sizing to come before width                     order/properties-alphabetical-order
 327:3  ✖  Expected grid-column to come before grid-row                 order/properties-alphabetical-order
 333:3  ✖  Expected grid-row to come before position                    order/properties-alphabetical-order
 334:3  ✖  Expected grid-column to come before grid-row                 order/properties-alphabetical-order
 335:3  ✖  Expected background-color to come before grid-column         order/properties-alphabetical-order
 ...
 
20 problems (20 errors, 0 warnings)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions