Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style Guide #31

Open
rhinoceraptor opened this issue Apr 16, 2015 · 2 comments
Open

Style Guide #31

rhinoceraptor opened this issue Apr 16, 2015 · 2 comments

Comments

@rhinoceraptor
Copy link
Member

We should have a style guide, covering:

  • Python
    • file naming
    • class naming
    • indentation
  • JavaScript
    • Brace style
    • naming style
    • comment style
    • indentation
  • HTML/CSS
    • class naming
    • id naming
    • indentation
  • Commit message format
@klobucar
Copy link
Member

I recommend this for JS: https://github.com/airbnb/javascript and use something like jslint with rules.

Python I recommend using this as the basis of yours. http://google-styleguide.googlecode.com/svn/trunk/pyguide.html

HTML /CSS is quite a bit easier for css either decide on the - or _ as a separator. class and id naming can be the same no matter what. in css a class is a . and an id is # so there isn't really any ambiguity to begin with.

@klobucar
Copy link
Member

Also, where you can use tools to lint and take care of style with jsfmt and pylint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants