bruce / atom-csscomb

Atom Editor Plugin for CSSComb [NOT MAINTAINED, SEE ISSUES]
MIT License
22 stars 4 forks source link

Allow path to custom configuration file in config.cson #15

Open danielbayley opened 9 years ago

danielbayley commented 9 years ago

It would be useful if we could put 'csscomb': '/Path/to/Custom/csscomb.json' in Atom's config.cson as an alternative instead of only being able to embed all those rules.

emaildano commented 9 years ago

I agree with @danielbayley. This would be great for anyone referring that file with other editors as-well.

I can't seem to get my settings into config.cson anyway. Not sure what syntax or format is needs. Can anyone provide an example?

Here's my config:

{
    "always-semicolon": true,
    "color-case": "lower",
    "block-indent": "  ",
    "color-shorthand": true,
    "element-case": "lower",
    "eof-newline": false,
    "leading-zero": false,
    "quotes": "single",
    "space-before-colon": "",
    "space-after-colon": " ",
    "space-before-combinator": " ",
    "space-after-combinator": " ",
    "space-between-declarations": "\n",
    "space-before-opening-brace": " ",
    "space-after-opening-brace": "\n",
    "space-after-selector-delimiter": "\n",
    "space-before-selector-delimiter": "",
    "space-before-closing-brace": "\n",
    "strip-spaces": true,
    "tab-size": true,
    "unitless-zero": true,
    "vendor-prefix-align": true
}

I'm guessing it starts with:

"csscomb": 
  ...

But that's as far as I get.

stramel commented 9 years ago

Seems like an enhancement that could be tied into #8