remark lint plugin that warns when any line inside a code block exceeds a configured maximum length. Current stable version is 0.1.3. Released as part of the remark-lint-plugins monorepo. Provides options to set line length (default 100), exclude certain code block languages, and configure tab width. Differentiates from other linting rules by focusing specifically on code block content rather than inline code or prose, and by offering per-language exclusions.
npm install remark-lint-no-long-codeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use remark lint with no-long-code plugin, configuring max length, exclusions, and tab width.
Use ["remark-lint-no-long-code", { length: 100 }] in config or .use(plugin, { length: 100 }) in code.Ensure expectations match: use other linting rules for inline code if needed.
Pin to exact version or review release notes before upgrading.
Run `npm install remark-lint-no-long-code` and ensure it's in dependencies.
Use object form: ["remark-lint-no-long-code", { length: 100 }].Add `.use(remarkLint)` before `.use(remarkLintNoLongCode)` in your remark pipeline.