1000ch / atom-stylefmt

Format your CSS using stylefmt.
https://atom.io/packages/stylefmt
MIT License
33 stars 3 forks source link

stylefmt fmts the .stylelintrc file #14

Closed macgyver closed 7 years ago

macgyver commented 8 years ago

When I have "Format on Save" enabled, and save my .stylelintrc file (where the grammar is set to Plain Text or JSON), it changes from

{
  "rules": {
    "indentation": 2,
  }
}

to

 {
  "rules": {
    2,: ;
  }
}

I realize this is just stylefmt's behavior when operating on those files, but maybe the editor should check the grammar first before running stylefmt on the file?