Skip to content

Commit 8dfdf37

Browse files
committed
Disable lint rule for offending code block and add empty line
1 parent 3d95898 commit 8dfdf37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/style-guides/javascript/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2568,6 +2568,8 @@ var foo = bar || null;
25682568

25692569
- In general, prefer placing the comment above the comment subject and place an empty line above the comment.
25702570

2571+
<!-- eslint-disable stdlib/empty-line-before-comment -->
2572+
25712573
```javascript
25722574
// Okay for short comments (sometimes)...
25732575
var foo = bar || null; // bar can be `0`
@@ -2580,6 +2582,8 @@ var foo = bar || null;
25802582
var bap = 'bap';
25812583
```
25822584

2585+
<!-- eslint-enable stdlib/empty-line-before-comment -->
2586+
25832587
##### Enforcement
25842588

25852589
Code review. TODO: ESLint rule (?).
@@ -3458,6 +3462,7 @@ Prevents variable leakage.
34583462
'use strict';
34593463

34603464
var beep = 'boop';
3465+
34613466
// ...
34623467
})();
34633468
```

0 commit comments

Comments
 (0)