OiWorld / MindTheWord

An extension for Google Chrome that helps people learn new languages while they browse the web.
43 stars 47 forks source link

update styling according to Google styleguide #76

Closed ankit-m closed 8 years ago

ankit-m commented 8 years ago

This updates curly braces and indentation styling according to Google style guide in all the js files in source.

Because of implicit semicolon insertion, always start your curly braces on the same line as whatever they're opening.

if (something) {
  // ...
} else {
  // ...
}

Multiline array initializers and object initializers are indented 2 spaces

It also fixes missing semicolons and replaces != with !== wherever required i.e. comparing with zeroes and null.

Improves javascript style #60

ceilican commented 8 years ago

@ankit-m , thank you for that! It looks good! Could you make the pull request automatically mergeable, so that I can merge it more easily?

ankit-m commented 8 years ago

@Ceilican I have made the branch automatically mergeable. There were some new commits which caused the conflicts. I have fixed those.

ceilican commented 8 years ago

Thank you!