Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit d0d2600

Browse files
Randall Reed, Jrrandallreedjr
authored andcommitted
Make section numbering consistent
* Renumber items where numbers were skipped
1 parent 1bc2f3f commit d0d2600

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Other Style Guides
155155
```
156156
157157
<a name="es6-computed-properties"></a><a name="3.4"></a>
158-
- [3.4](#es6-computed-properties) Use computed property names when creating objects with dynamic property names.
158+
- [3.2](#es6-computed-properties) Use computed property names when creating objects with dynamic property names.
159159
160160
> Why? They allow you to define all the properties of an object in one place.
161161
@@ -181,7 +181,7 @@ Other Style Guides
181181
```
182182
183183
<a name="es6-object-shorthand"></a><a name="3.5"></a>
184-
- [3.5](#es6-object-shorthand) Use object method shorthand. eslint: [`object-shorthand`](http://eslint.org/docs/rules/object-shorthand.html) jscs: [`requireEnhancedObjectLiterals`](http://jscs.info/rule/requireEnhancedObjectLiterals)
184+
- [3.3](#es6-object-shorthand) Use object method shorthand. eslint: [`object-shorthand`](http://eslint.org/docs/rules/object-shorthand.html) jscs: [`requireEnhancedObjectLiterals`](http://jscs.info/rule/requireEnhancedObjectLiterals)
185185
186186
```javascript
187187
// bad
@@ -204,7 +204,7 @@ Other Style Guides
204204
```
205205
206206
<a name="es6-object-concise"></a><a name="3.6"></a>
207-
- [3.6](#es6-object-concise) Use property value shorthand. eslint: [`object-shorthand`](http://eslint.org/docs/rules/object-shorthand.html) jscs: [`requireEnhancedObjectLiterals`](http://jscs.info/rule/requireEnhancedObjectLiterals)
207+
- [3.4](#es6-object-concise) Use property value shorthand. eslint: [`object-shorthand`](http://eslint.org/docs/rules/object-shorthand.html) jscs: [`requireEnhancedObjectLiterals`](http://jscs.info/rule/requireEnhancedObjectLiterals)
208208
209209
> Why? It is shorter to write and descriptive.
210210
@@ -223,7 +223,7 @@ Other Style Guides
223223
```
224224
225225
<a name="objects--grouped-shorthand"></a><a name="3.7"></a>
226-
- [3.7](#objects--grouped-shorthand) Group your shorthand properties at the beginning of your object declaration.
226+
- [3.5](#objects--grouped-shorthand) Group your shorthand properties at the beginning of your object declaration.
227227
228228
> Why? It's easier to tell which properties are using the shorthand.
229229

@@ -253,7 +253,7 @@ Other Style Guides
253253
```
254254

255255
<a name="objects--quoted-props"></a><a name="3.8"></a>
256-
- [3.8](#objects--quoted-props) Only quote properties that are invalid identifiers. eslint: [`quote-props`](http://eslint.org/docs/rules/quote-props.html) jscs: [`disallowQuotedKeysInObjects`](http://jscs.info/rule/disallowQuotedKeysInObjects)
256+
- [3.6](#objects--quoted-props) Only quote properties that are invalid identifiers. eslint: [`quote-props`](http://eslint.org/docs/rules/quote-props.html) jscs: [`disallowQuotedKeysInObjects`](http://jscs.info/rule/disallowQuotedKeysInObjects)
257257

258258
> Why? In general we consider it subjectively easier to read. It improves syntax highlighting, and is also more easily optimized by many JS engines.
259259

@@ -274,7 +274,7 @@ Other Style Guides
274274
```
275275

276276
<a name="objects--prototype-builtins"></a>
277-
- [3.9](#objects--prototype-builtins) Do not call `Object.prototype` methods directly, such as `hasOwnProperty`, `propertyIsEnumerable`, and `isPrototypeOf`.
277+
- [3.7](#objects--prototype-builtins) Do not call `Object.prototype` methods directly, such as `hasOwnProperty`, `propertyIsEnumerable`, and `isPrototypeOf`.
278278

279279
> Why? These methods may be shadowed by properties on the object in question - consider `{ hasOwnProperty: false }` - or, the object may be a null object (`Object.create(null)`).
280280

@@ -294,7 +294,7 @@ Other Style Guides
294294
```
295295

296296
<a name="objects--rest-spread"></a>
297-
- [3.10](#objects--rest-spread) Prefer the object spread operator over `Object.assign` to shallow-copy objects. Use the object rest operator to get a new object with certain properties omitted.
297+
- [3.8](#objects--rest-spread) Prefer the object spread operator over `Object.assign` to shallow-copy objects. Use the object rest operator to get a new object with certain properties omitted.
298298

299299
```javascript
300300
// very bad
@@ -525,7 +525,7 @@ Other Style Guides
525525
```
526526
527527
<a name="es6-template-literals"></a><a name="6.4"></a>
528-
- [6.4](#es6-template-literals) When programmatically building up strings, use template strings instead of concatenation. eslint: [`prefer-template`](http://eslint.org/docs/rules/prefer-template.html) [`template-curly-spacing`](http://eslint.org/docs/rules/template-curly-spacing) jscs: [`requireTemplateStrings`](http://jscs.info/rule/requireTemplateStrings)
528+
- [6.3](#es6-template-literals) When programmatically building up strings, use template strings instead of concatenation. eslint: [`prefer-template`](http://eslint.org/docs/rules/prefer-template.html) [`template-curly-spacing`](http://eslint.org/docs/rules/template-curly-spacing) jscs: [`requireTemplateStrings`](http://jscs.info/rule/requireTemplateStrings)
529529
530530
> Why? Template strings give you a readable, concise syntax with proper newlines and string interpolation features.
531531
@@ -552,10 +552,10 @@ Other Style Guides
552552
```
553553
554554
<a name="strings--eval"></a><a name="6.5"></a>
555-
- [6.5](#strings--eval) Never use `eval()` on a string, it opens too many vulnerabilities.
555+
- [6.4](#strings--eval) Never use `eval()` on a string, it opens too many vulnerabilities.
556556
557557
<a name="strings--escaping"></a>
558-
- [6.6](#strings--escaping) Do not unnecessarily escape characters in strings. eslint: [`no-useless-escape`](http://eslint.org/docs/rules/no-useless-escape)
558+
- [6.5](#strings--escaping) Do not unnecessarily escape characters in strings. eslint: [`no-useless-escape`](http://eslint.org/docs/rules/no-useless-escape)
559559
560560
> Why? Backslashes harm readability, thus they should only be present when necessary.
561561

0 commit comments

Comments
 (0)