Skip to content

Commit

Permalink
maximum-line-length: ignore yaml, toml
Browse files Browse the repository at this point in the history
  • Loading branch information
travi authored Jul 2, 2020
1 parent 750541e commit 0f0f24a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/remark-lint-maximum-line-length/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ function maximumLineLength(tree, file, option) {
var lineLength

// Note: JSX is from MDX: <https://github.com/mdx-js/specification>.
visit(tree, ['heading', 'table', 'code', 'definition', 'html', 'jsx'], ignore)
visit(
tree,
['heading', 'table', 'code', 'definition', 'html', 'jsx', 'yaml', 'toml'],
ignore
)
visit(tree, ['link', 'image', 'inlineCode'], inline)

// Iterate over every line, and warn for violating lines.
Expand Down

0 comments on commit 0f0f24a

Please sign in to comment.