Skip to content

Commit ee60f09

Browse files
sindresorhusaxetroy
authored andcommitted
Update consistent-assert.md
1 parent be1558c commit ee60f09

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/rules/consistent-assert.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,31 @@ Enforce consistent assertion styles with `node:assert`.
1212
## Examples
1313

1414
```js
15-
//
1615
import assert from 'node:assert';
16+
17+
//
1718
assert(true);
1819

1920
//
20-
import assert from 'node:assert';
2121
assert.ok(true);
2222
```
2323

2424
```js
25-
//
2625
import {strict as assert} from 'node:assert';
26+
27+
//
2728
assert(true);
2829

2930
//
30-
import {strict as assert} from 'node:assert';
3131
assert.ok(true);
3232
```
3333

3434
```js
35-
//
3635
import assert from 'node:assert/strict';
36+
37+
//
3738
assert(true);
3839

3940
//
40-
import assert from 'node:assert/strict';
4141
assert.ok(true);
4242
```

0 commit comments

Comments
 (0)