Skip to content

Commit 71e54f2

Browse files
committed
doc: fix some nits in README.md
* Add missing anchors for section references. * Correct a rule description.
1 parent edf942e commit 71e54f2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,6 +1053,7 @@ Other Style Guides
10531053
};
10541054
```
10551055
1056+
<a name="whitespace--implicit-arrow-linebreak"></a>
10561057
- [8.6](#whitespace--implicit-arrow-linebreak) Enforce the location of arrow function bodies with implicit returns. eslint: [`implicit-arrow-linebreak`](https://eslint.org/docs/rules/implicit-arrow-linebreak)
10571058
10581059
```javascript
@@ -2682,6 +2683,7 @@ Other Style Guides
26822683
.fail(() => console.log('You have failed this city.'));
26832684
```
26842685

2686+
<a name="whitespace--block-spacing"></a>
26852687
- [19.13](#whitespace--block-spacing) Require consistent spacing inside an open block token and the next token on the same line. This rule also enforces consistent spacing inside a close block token and previous token on the same line. eslint: [`block-spacing`](https://eslint.org/docs/rules/block-spacing)
26862688

26872689
```javascript
@@ -2694,6 +2696,7 @@ Other Style Guides
26942696
if (foo) { bar = 0; }
26952697
```
26962698

2699+
<a name="whitespace--comma-spacing"></a>
26972700
- [19.14](#whitespace--comma-spacing) Avoid spaces before commas and require a space after commas. eslint: [`comma-spacing`](https://eslint.org/docs/rules/comma-spacing)
26982701

26992702
```javascript
@@ -2706,7 +2709,8 @@ Other Style Guides
27062709
var arr = [1, 2];
27072710
```
27082711

2709-
- [19.15](#whitespace--computed-property-spacing) Avoid spaces before commas and require a space after commas. eslint: [`computed-property-spacing`](https://eslint.org/docs/rules/computed-property-spacing)
2712+
<a name="whitespace--computed-property-spacing"></a>
2713+
- [19.15](#whitespace--computed-property-spacing) Enforce spacing inside of computed properties. eslint: [`computed-property-spacing`](https://eslint.org/docs/rules/computed-property-spacing)
27102714

27112715
```javascript
27122716
// bad
@@ -2722,6 +2726,7 @@ Other Style Guides
27222726
obj[foo[bar]]
27232727
```
27242728

2729+
<a name="whitespace--func-call-spacing"></a>
27252730
- [19.16](#whitespace--func-call-spacing) Enforce spacing between functions and their invocations. eslint: [`func-call-spacing`](https://eslint.org/docs/rules/func-call-spacing)
27262731

27272732
```javascript
@@ -2735,6 +2740,7 @@ Other Style Guides
27352740
func();
27362741
```
27372742

2743+
<a name="whitespace--key-spacing"></a>
27382744
- [19.17](#whitespace--key-spacing) Enforce spacing between keys and values in object literal properties. eslint: [`key-spacing`](https://eslint.org/docs/rules/key-spacing)
27392745

27402746
```javascript
@@ -2746,8 +2752,10 @@ Other Style Guides
27462752
var obj = { "foo": 42 };
27472753
```
27482754

2755+
<a name="whitespace--no-trailing-spaces"></a>
27492756
- [19.18](#whitespace--no-trailing-spaces) Avoid trailing spaces at the end of lines. eslint: [`no-trailing-spaces`](https://eslint.org/docs/rules/no-trailing-spaces)
27502757

2758+
<a name="whitespace--no-multiple-empty-lines"></a>
27512759
- [19.19](#whitespace--no-multiple-empty-lines) Avoid multiple empty lines and only allow one newline at the end of files. eslint: [`no-multiple-empty-lines`](https://eslint.org/docs/rules/no-multiple-empty-lines)
27522760

27532761
<!-- markdownlint-disable MD012 -->

0 commit comments

Comments
 (0)