Skip to content

Commit

Permalink
Remove node: protocols for now
Browse files Browse the repository at this point in the history
Reviewed-by: Titus Wormer <[email protected]>

Closes GH-32.
  • Loading branch information
EvHaus authored Oct 22, 2021
1 parent 17d2600 commit ba4d376
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* Repository to link against.
*/

import fs from 'node:fs'
import process from 'node:process'
import path from 'node:path'
import fs from 'fs'
import process from 'process'
import path from 'path'
import {visit} from 'unist-util-visit'
import {toString} from 'mdast-util-to-string'
import {findAndReplace} from 'mdast-util-find-and-replace'
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,10 @@
"trailingComma": "none"
},
"xo": {
"prettier": true
"prettier": true,
"rules": {
"unicorn/prefer-node-protocol": "off"
}
},
"remarkConfig": {
"plugins": [
Expand Down
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* @typedef {import('../index.js').Options} Options
*/

import fs from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import fs from 'fs'
import path from 'path'
import process from 'process'
import test from 'tape'
import {remark} from 'remark'
import remarkGfm from 'remark-gfm'
Expand Down

0 comments on commit ba4d376

Please sign in to comment.