Skip to content

Commit

Permalink
maximum-line-length: allow long mdx@2 nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 23, 2021
1 parent 0b78a7e commit 7e25b41
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/remark-lint-maximum-line-length/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,20 @@ const remarkLintMaximumLineLength = lintRule(
node.type === 'code' ||
node.type === 'definition' ||
node.type === 'html' ||
// @ts-expect-error: JSX is from MDX: <https://github.com/mdx-js/specification>.
// @ts-expect-error: These are from MDX@1 and MDX@2: <https://github.com/mdx-js/specification>.
node.type === 'jsx' ||
// @ts-expect-error: MDX
node.type === 'mdxFlowExpression' ||
// @ts-expect-error: MDX
node.type === 'mdxJsxFlowElement' ||
// @ts-expect-error: MDX
node.type === 'mdxJsxTextElement' ||
// @ts-expect-error: MDX
node.type === 'mdxTextExpression' ||
// @ts-expect-error: MDX
node.type === 'mdxjsEsm' ||
node.type === 'yaml' ||
// @ts-expect-error: TOML is from frontmatter.
// @ts-expect-error: YAML and TOML are from frontmatter.
node.type === 'toml') &&
!generated(node)
) {
Expand Down

0 comments on commit 7e25b41

Please sign in to comment.