yeoman / generator-backbone

Scaffold out a Backbone.js project
http://yeoman.io
638 stars 159 forks source link

A simple way to get rid of semicolons? #355

Closed rjcorwin closed 8 years ago

rjcorwin commented 8 years ago

Hi there - I know this is a sensitive issue but I was just hoping there might be an easy way to get rid of semicolons. I don't really need them on the teams that I work on.

arthurvr commented 8 years ago

No, there isn't. Every official generator agreed on one style guide, and that's the one we follow. If you integrate something like jscs you can easily just edit its config and use --fix to make all code adhere to your personal/team's style.

rjcorwin commented 8 years ago

Thank you for the tip! In .jshintrc I set "asi": false, so that grunt would not fail or complain about semi-colons and then in .jscsrc I set "dissallowSemicolons": true,. Unfortunately with the dissallowSemicolons option, it is an exception in that it does not work with jscs --fix. Oh well. My situation is already vastly improved!

Senior Front End Engineer at Isovera, Javascript Ninja, Farm Hacker, Unix Philosophy for IoT Evangelist rj@rjsteinert.com http://rjsteinert.com http://twitter.com/rjsteinert http://github.com/rjsteinert

On Mon, Aug 3, 2015 at 4:16 PM, Arthur Verschaeve notifications@github.com wrote:

No, there isn't. Every official generator agreed on one style guide, and that's the one we follow. If you integrate something like jscs you can easily just edit its config and use --fix to make all code adhere to your personal/team's style.

— Reply to this email directly or view it on GitHub https://github.com/yeoman/generator-backbone/issues/355#issuecomment-127395012 .