matype / stylefmt

stylefmt is a tool that automatically formats stylesheets.
Other
2.1k stars 89 forks source link

Unnecessary custom selectors logging #200

Closed dmarchena closed 7 years ago

dmarchena commented 7 years ago

I don't understand why we need this console.log in formatAtRuleParams.js. It prints my custom selectors mixed with stylelint messages. Its quite dirty and useless, isn't it?

if (atName === 'custom-selector') {
  console.log(params)
  params = params.replace(/\s+/, ' ')
  params = params.replace(/,\s*/g, ', ')
}

https://github.com/morishitter/stylefmt/blob/master/lib/formatAtRuleParams.js#L90

Remove that line or add a silent mode, please. Thanks! :-)