Docs: Fixed lazy numbering in all documentation files (#27975)

This commit is contained in:
DECarreras
2020-10-01 12:45:05 -04:00
committed by GitHub
parent c3f277a6fe
commit 54df058b95
33 changed files with 158 additions and 158 deletions
@@ -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.