Skip to content
Snippets Groups Projects
Commit c49a8fb1 authored by Fatih Acet's avatar Fatih Acet
Browse files

Update style_guide_js.md

parent 60a6389a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -71,6 +71,16 @@ See [our current .eslintrc][eslintrc] for specific rules and patterns.
/* global Cookies */
/* global jQuery */
```
- Use up to 3 parameters for a function or class. If you need more accept an Object instead.
```javascript
// bad
fn(p1, p2, p3, p4) {}
// good
fn(options) {}
```
 
#### Modules, Imports, and Exports
- Use ES module syntax to import modules
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment