Merge branch 'fe-doc-update' into 'master'
Add parameter limit to styleguide See merge request !10830
This commit is contained in:
commit
b8b6ab6b91
|
@ -71,6 +71,16 @@ See [our current .eslintrc][eslintrc] for specific rules and patterns.
|
||||||
/* global Cookies */
|
/* global Cookies */
|
||||||
/* global jQuery */
|
/* 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
|
#### Modules, Imports, and Exports
|
||||||
- Use ES module syntax to import modules
|
- Use ES module syntax to import modules
|
||||||
|
|
Loading…
Reference in New Issue