Skip to content

Commit b29e373

Browse files
authoredJul 29, 2021
Remove import x statements (github#20594)
* Clear out most import x * Update rimraf use * Move up readme blocks in scripts
1 parent 1ed18e1 commit b29e373

File tree

84 files changed

+551
-524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+551
-524
lines changed
 

‎lib/create-tree.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { fileURLToPath } from 'url'
22
import path from 'path'
3-
import xFs from 'fs'
3+
import fs from 'fs/promises'
44
import Page from './page.js'
55
const __dirname = path.dirname(fileURLToPath(import.meta.url))
6-
const fs = xFs.promises
76

87
export default async function createTree(originalPath, langObj) {
98
// This basePath definition is needed both here and in lib/page-data.js because this

‎lib/render-content/create-processor.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import slug from 'rehype-slug'
99
import autolinkHeadings from 'rehype-autolink-headings'
1010
import highlight from 'rehype-highlight'
1111
import html from 'rehype-stringify'
12-
import xHighlightjsGraphql from 'highlightjs-graphql'
12+
import HighlightjsGraphql from 'highlightjs-graphql'
1313
import remarkCodeExtra from 'remark-code-extra'
1414
import codeHeader from './plugins/code-header.js'
1515
import rewriteLocalLinks from './plugins/rewrite-local-links.js'
1616
import useEnglishHeadings from './plugins/use-english-headings.js'
1717
import rewriteLegacyAssetPaths from './plugins/rewrite-legacy-asset-paths.js'
1818
import wrapInElement from './plugins/wrap-in-element.js'
19-
const graphql = xHighlightjsGraphql.definer
19+
const graphql = HighlightjsGraphql.definer
2020

2121
export default function createProcessor(context) {
2222
return unified()

0 commit comments

Comments
 (0)