diff --git a/docs/rules/prefer-node-protocol.md b/docs/rules/prefer-node-protocol.md index 4a962ff7fb..fe14a74005 100644 --- a/docs/rules/prefer-node-protocol.md +++ b/docs/rules/prefer-node-protocol.md @@ -29,6 +29,10 @@ export {strict as default} from 'assert'; import fs from 'fs/promises'; ``` +```js +const fs = require('fs'); +``` + ```js const fs = require('fs/promises'); ``` @@ -47,10 +51,6 @@ export {strict as default} from 'node:assert'; import fs from 'node:fs/promises'; ``` -```js -const fs = require('fs'); -``` - ```js import _ from 'lodash'; ```