markdownlint-sentences-per-line
v0.1.1
Published
Markdownlint rule for limiting sentences per line. 📐
Readme
- First sentence. Second sentence.
+ First sentence.
+ Second sentence.markdownlint-sentences-per-line allows you to enforce that no line in your Markdown files contains more than one sentence. This is useful because:
- Shorter lines result in simpler, easier-to-understand Git diffs
- Longer lines are harder to read in source code
- First sentence. Second sentence.
+ First sentence.
+ Second sentence.Usage
First install this package as a devDependency:
npm i -D markdownlint-sentences-per-lineThen provide it to markdownlint-cli's --rules:
markdownlint --rules markdownlint-sentences-per-lineAlternatives
This package is part of the sentences-per-line of packages. You might also consider:
eslint-plugin-sentences-per-line: ESLint plugin to enforce sentences per line in Markdown files.
