-
-
Notifications
You must be signed in to change notification settings - Fork 584
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
Determine style guide for Javascript #317
Comments
I personally don't really really have a preference, for python I chose pep8 because it's kind of the more or less official style guide, so for JS I would like to use something that is similarly known and not do our own thing. Another important thing would be the availability of some kind of automatic testing tool so that we can integrate this with travis. |
Ok, so as a test I decided on AirBnB for the style. I created a branch on my fork to show what is done so far:
You can see the branch here: https://github.com/petervanderdoes/wger/tree/feature/javascript Let me know what you think. |
This does indeed look great, I also like the AirBnB style, I think we can keep it :) |
Cool, I'll keep working on it. |
Update
Tests returns some problems which I'll be looking into in the next few days. |
All Python tests pass. |
Thanks. I've opened PR #321, I hope I'll find time to take a closer look today, as I am leaving tomorrow for a week for my vacation (I'll have internet and will be able to answer on issues, but not much more). In any case, I've added you to the developers team, that'll make things easier in the future ;) |
Thanks for adding me. I'll not be doing any merging in the near future, at least not without talking to you about it. Enjoy your vacation. |
Fixed with #321 |
Currently the project follows PEP8 style guide for the Python files but no style guide is set for Javascript.
There are several options for the javascript style, this issue should help determine which one will be adopted.
As far as Ecmascript version, I suggest to go with 5 for now. Ecmascript 6 is out but still not fully supported by "older" browsers, IE11, IOS9.
For styling guides we can choose from:
Point is to choose one and stick with it :)
The text was updated successfully, but these errors were encountered: