Style Guides
March 29, 2023 ยท View on GitHub
- http://jscs.info
- http://eslint.org
- https://github.com/rwaldron/idiomatic.js
- https://contribute.jquery.org/style-guide/js/
- https://google.github.io/styleguide/jsguide.html
- https://github.com/airbnb/javascript
- https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style#JavaScript_objects
- http://standardjs.com/
| Personal Opinion | AirBNB | jQuery | Standard | ||
|---|---|---|---|---|---|
| Semicolons | Required | Required | Required | Required | Not Required |
| import/export | DO NOT USE | Use | |||
| require() | Custom Solution | DO NOT USE | |||
| Trailing Commas | Required | Required | Required | ||
| camelCase | parameter names, local variables | objects, functions, instances, local variables | |||
| blank | objects, functions, instances |