You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [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)
1057
1058
1058
1059
```javascript
@@ -2682,6 +2683,7 @@ Other Style Guides
2682
2683
.fail(() => console.log('You have failed this city.'));
2683
2684
```
2684
2685
2686
+
<a name="whitespace--block-spacing"></a>
2685
2687
- [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)
2686
2688
2687
2689
```javascript
@@ -2694,6 +2696,7 @@ Other Style Guides
2694
2696
if (foo) { bar = 0; }
2695
2697
```
2696
2698
2699
+
<a name="whitespace--comma-spacing"></a>
2697
2700
- [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)
2698
2701
2699
2702
```javascript
@@ -2706,7 +2709,8 @@ Other Style Guides
2706
2709
var arr = [1, 2];
2707
2710
```
2708
2711
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)
- [19.15](#whitespace--computed-property-spacing) Enforce spacing inside of computed properties. eslint: [`computed-property-spacing`](https://eslint.org/docs/rules/computed-property-spacing)
2710
2714
2711
2715
```javascript
2712
2716
// bad
@@ -2722,6 +2726,7 @@ Other Style Guides
2722
2726
obj[foo[bar]]
2723
2727
```
2724
2728
2729
+
<a name="whitespace--func-call-spacing"></a>
2725
2730
- [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)
2726
2731
2727
2732
```javascript
@@ -2735,6 +2740,7 @@ Other Style Guides
2735
2740
func();
2736
2741
```
2737
2742
2743
+
<a name="whitespace--key-spacing"></a>
2738
2744
- [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)
2739
2745
2740
2746
```javascript
@@ -2746,8 +2752,10 @@ Other Style Guides
2746
2752
var obj = { "foo": 42 };
2747
2753
```
2748
2754
2755
+
<a name="whitespace--no-trailing-spaces"></a>
2749
2756
- [19.18](#whitespace--no-trailing-spaces) Avoid trailing spaces at the end oflines. eslint: [`no-trailing-spaces`](https://eslint.org/docs/rules/no-trailing-spaces)
- [19.19](#whitespace--no-multiple-empty-lines) Avoid multiple empty lines and only allow one newline at the end offiles. eslint: [`no-multiple-empty-lines`](https://eslint.org/docs/rules/no-multiple-empty-lines)
0 commit comments