Skip to content

Commit dc7291d

Browse files
Mark Skeltontargos
Mark Skelton
authored andcommittedOct 13, 2021
doc: remove ESLint comments which were breaking the CJS/ESM toggles
PR-URL: #40408 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Zijian Liu <[email protected]>
1 parent 85b7385 commit dc7291d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed
 

‎doc/api/assert.md

-11
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,6 @@ function. See [`assert.throws()`][] for more details.
956956
Besides the async nature to await the completion behaves identically to
957957
[`assert.doesNotThrow()`][].
958958

959-
<!-- eslint-disable no-restricted-syntax -->
960959
```mjs
961960
import assert from 'assert/strict';
962961

@@ -981,7 +980,6 @@ const assert = require('assert/strict');
981980
})();
982981
```
983982

984-
<!-- eslint-disable no-restricted-syntax -->
985983
```mjs
986984
import assert from 'assert/strict';
987985

@@ -991,7 +989,6 @@ assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
991989
});
992990
```
993991

994-
<!-- eslint-disable no-restricted-syntax -->
995992
```cjs
996993
const assert = require('assert/strict');
997994

@@ -1040,7 +1037,6 @@ function. See [`assert.throws()`][] for more details.
10401037
The following, for instance, will throw the [`TypeError`][] because there is no
10411038
matching error type in the assertion:
10421039

1043-
<!-- eslint-disable no-restricted-syntax -->
10441040
```mjs
10451041
import assert from 'assert/strict';
10461042

@@ -1052,7 +1048,6 @@ assert.doesNotThrow(
10521048
);
10531049
```
10541050

1055-
<!-- eslint-disable no-restricted-syntax -->
10561051
```cjs
10571052
const assert = require('assert/strict');
10581053

@@ -1067,7 +1062,6 @@ assert.doesNotThrow(
10671062
However, the following will result in an [`AssertionError`][] with the message
10681063
'Got unwanted exception...':
10691064

1070-
<!-- eslint-disable no-restricted-syntax -->
10711065
```mjs
10721066
import assert from 'assert/strict';
10731067

@@ -1079,7 +1073,6 @@ assert.doesNotThrow(
10791073
);
10801074
```
10811075

1082-
<!-- eslint-disable no-restricted-syntax -->
10831076
```cjs
10841077
const assert = require('assert/strict');
10851078

@@ -1095,7 +1088,6 @@ If an [`AssertionError`][] is thrown and a value is provided for the `message`
10951088
parameter, the value of `message` will be appended to the [`AssertionError`][]
10961089
message:
10971090

1098-
<!-- eslint-disable no-restricted-syntax -->
10991091
```mjs
11001092
import assert from 'assert/strict';
11011093

@@ -1109,7 +1101,6 @@ assert.doesNotThrow(
11091101
// Throws: AssertionError: Got unwanted exception: Whoops
11101102
```
11111103

1112-
<!-- eslint-disable no-restricted-syntax -->
11131104
```cjs
11141105
const assert = require('assert/strict');
11151106

@@ -2338,7 +2329,6 @@ message as the thrown error message is going to result in an
23382329
`ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using
23392330
a string as the second argument gets considered:
23402331

2341-
<!-- eslint-disable no-restricted-syntax -->
23422332
```mjs
23432333
import assert from 'assert/strict';
23442334

@@ -2375,7 +2365,6 @@ assert.throws(throwingFirst, /Second$/);
23752365
// AssertionError [ERR_ASSERTION]
23762366
```
23772367

2378-
<!-- eslint-disable no-restricted-syntax -->
23792368
```cjs
23802369
const assert = require('assert/strict');
23812370

0 commit comments

Comments
 (0)