Docs: Fixed lazy numbering in all documentation files (#27975)
This commit is contained in:
@@ -146,8 +146,8 @@ We recommend that you use a linter for your JavaScript. For ES6, the standard li
|
||||
### ES6 features
|
||||
|
||||
1. Use `const` if a variable is not going to be reassigned.
|
||||
2. Prefer to use `let` instead `var` ([Exploring ES6](http://exploringjs.com/es6/ch_core-features.html#_from-var-to-letconst))
|
||||
3. Use arrow functions, which don’t shadow `this` ([Exploring ES6](http://exploringjs.com/es6/ch_core-features.html#_from-function-expressions-to-arrow-functions)):
|
||||
1. Prefer to use `let` instead `var` ([Exploring ES6](http://exploringjs.com/es6/ch_core-features.html#_from-var-to-letconst))
|
||||
1. Use arrow functions, which don’t shadow `this` ([Exploring ES6](http://exploringjs.com/es6/ch_core-features.html#_from-function-expressions-to-arrow-functions)):
|
||||
|
||||
```js
|
||||
testDatasource() {
|
||||
@@ -170,7 +170,7 @@ We recommend that you use a linter for your JavaScript. For ES6, the standard li
|
||||
}
|
||||
```
|
||||
|
||||
4. Use native _Promise_ object:
|
||||
1. Use native _Promise_ object:
|
||||
|
||||
```js
|
||||
metricFindQuery(query) {
|
||||
@@ -190,4 +190,4 @@ We recommend that you use a linter for your JavaScript. For ES6, the standard li
|
||||
}
|
||||
```
|
||||
|
||||
5. If using Lodash, then be consistent and prefer that to the native ES6 array functions.
|
||||
1. If using Lodash, then be consistent and prefer that to the native ES6 array functions.
|
||||
|
||||
Reference in New Issue
Block a user