diff options
author | 2023-03-10 16:19:57 +0100 | |
---|---|---|
committer | 2023-03-10 16:19:57 +0100 | |
commit | c44aa15534007c3ac320fa6e632c760ddb2ce2f3 (patch) | |
tree | 8f200fb52627f228685dfc9e83ef067cdde31d91 /packages/markdown/remark/src | |
parent | d37dc7c71a688fe25cfdd7cfa3594ffe1e0a6d6e (diff) | |
download | astro-c44aa15534007c3ac320fa6e632c760ddb2ce2f3.tar.gz astro-c44aa15534007c3ac320fa6e632c760ddb2ce2f3.tar.zst astro-c44aa15534007c3ac320fa6e632c760ddb2ce2f3.zip |
fix: Enforce the usage of type imports when possible (#6502)
Diffstat (limited to 'packages/markdown/remark/src')
-rw-r--r-- | packages/markdown/remark/src/load-plugins.ts | 2 | ||||
-rw-r--r-- | packages/markdown/remark/src/rehype-collect-headings.ts | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/markdown/remark/src/load-plugins.ts b/packages/markdown/remark/src/load-plugins.ts index abc93c122..a3efd92a6 100644 --- a/packages/markdown/remark/src/load-plugins.ts +++ b/packages/markdown/remark/src/load-plugins.ts @@ -1,6 +1,6 @@ import { resolve as importMetaResolve } from 'import-meta-resolve'; import path from 'path'; -import * as unified from 'unified'; +import type * as unified from 'unified'; import { pathToFileURL } from 'url'; const cwdUrlStr = pathToFileURL(path.join(process.cwd(), 'package.json')).toString(); diff --git a/packages/markdown/remark/src/rehype-collect-headings.ts b/packages/markdown/remark/src/rehype-collect-headings.ts index 19963cb80..9e3c8005e 100644 --- a/packages/markdown/remark/src/rehype-collect-headings.ts +++ b/packages/markdown/remark/src/rehype-collect-headings.ts @@ -1,7 +1,7 @@ -import { type Expression, type Super } from 'estree'; +import type { Expression, Super } from 'estree'; import Slugger from 'github-slugger'; -import { type MdxTextExpression } from 'mdast-util-mdx-expression'; -import { type Node } from 'unist'; +import type { MdxTextExpression } from 'mdast-util-mdx-expression'; +import type { Node } from 'unist'; import { visit } from 'unist-util-visit'; import { InvalidAstroDataError, safelyGetAstroData } from './frontmatter-injection.js'; |