ben-eb / perfectionist

Beautify CSS files.
MIT License
229 stars 14 forks source link

How to make it work with lint-stage+pre-commit? #74

Open jitendravyas opened 7 years ago

jitendravyas commented 7 years ago

I tried this but it's not working

  "lint-staged": {
    "*.scss": [
      "perfectionist",
      "stylelint --syntax scss",
      "git add"
    ]
  },

But stylefmt works

"lint-staged": { "*.scss": [ "stylefmt", "stylelint --syntax scss", "git add" ] },