GithubHelp home page GithubHelp logo

Comments (8)

robstolarz avatar robstolarz commented on June 20, 2024

I was about to agree with this, but then I saw some questionable choices such as "No semicolons" and "Space after function name".

For something that calls itself "standard", you'd be hard-pressed to find JS code that uses zero semicolons. Also, people like to put spaces between ifs and their conditions while removing it from functions, to allow distinguishing between the two visually like

if (this) {
  thenThat(a,b);
} else {
  otherThing();
}

I do agree with some kind of code style/linting, and I think the "npm test runs a linter" idea is phenomenal. Just, maybe not this style. It's really kind of a misnomer, in my opinion.

from serverless.

ashack293 avatar ashack293 commented on June 20, 2024

I agree that some of the formatting choices are not my favorites. I do love my semi-colons.

But I use Sublime Text, so I installed a package that auto-formats my .js files when I save them: https://packagecontrol.io/packages/StandardFormat . This makes it a lot easier.

from serverless.

austencollins avatar austencollins commented on June 20, 2024

Update 8/13/15:

We’re currently working on a document that outlines the specifications for JAWS v1.0.0.

A proposed resolution to this issue in particular is included in that document.

Today or tomorrow, we will share the document for everyone to comment on because your feedback is essential.

from serverless.

ashack293 avatar ashack293 commented on June 20, 2024

We're using airbnb's style guide, so this issue can be closed.

from serverless.

doapp-ryanp avatar doapp-ryanp commented on June 20, 2024

@ashack293 check #64 for our proposed implementation / enforcement of airbnb (with 2 tweaks). Make sure to checkout the README.md cuz our choice of JSCS makes it easy to use with most editors. FWIW I use WebStorm 11 and its working very nicely.

from serverless.

ashack293 avatar ashack293 commented on June 20, 2024

@doapp-ryanp yeah, I made a comment in the spec referring other Sublime Text users to the SublimeLinter package for enforcement of airbnb. I didn't really care which standard we used, so long as we use one ;)

from serverless.

doapp-ryanp avatar doapp-ryanp commented on June 20, 2024

Yup - JSCS overview has one too for sublime. If you use its Airbnb preset and suck in our .jscsrc included in the project it will make your life easier IMO. Totally up to you.

from serverless.

ashack293 avatar ashack293 commented on June 20, 2024

Cool, thanks!

from serverless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.