npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@cffnpwr/textlint-rule-sentence-per-line

v1.1.0

Published

1行に複数の文が含まれている状態を検出するtextlintルール

Readme

@cffnpwr/textlint-rule-sentence-per-line

GitHub License npm Version JSR Version

A textlint rule that detects lines containing more than one sentence.

日本語のREADMEはこちら

It enforces the style of "break the line after each sentence, and separate paragraphs with blank lines." The one-sentence-per-line format makes diffs sentence-scoped and easier to review.

<!-- NG -->
一文目です。二文目です。

<!-- OK -->
一文目です。
二文目です。

Sentence boundaries are determined by sentence-splitter. It does not split on "。" inside quotation marks or parentheses, or on the period in abbreviations such as Node.js. A single sentence wrapped across multiple lines at a comma or similar is not a violation.

Only paragraphs are inspected. Text inside list items is included, while headings, inline code, and code blocks are excluded.

When a line has two or more sentences, each sentence from the second onward is reported.

This rule supports autofixing with textlint --fix. Each fix inserts a line break at the sentence boundary. Inside a list item, the continuation line is indented to match the item's own indentation, so the fix does not fall back on lazy continuation.

How to Install

npm

npm install --save-dev @cffnpwr/textlint-rule-sentence-per-line

or

npx jsr add -D @cffnpwr/textlint-rule-sentence-per-line

yarn

yarn add --dev @cffnpwr/textlint-rule-sentence-per-line

or

yarn dlx jsr add -D @cffnpwr/textlint-rule-sentence-per-line

pnpm

pnpm add --save-dev @cffnpwr/textlint-rule-sentence-per-line

or

pnpm dlx jsr add -D @cffnpwr/textlint-rule-sentence-per-line

Bun

bun add --dev @cffnpwr/textlint-rule-sentence-per-line

or

bunx jsr add -D @cffnpwr/textlint-rule-sentence-per-line

Deno

deno add --dev npm:@cffnpwr/textlint-rule-sentence-per-line

or

deno add --dev jsr:@cffnpwr/textlint-rule-sentence-per-line

How to Use

Add it to .textlintrc.json.

{
  "rules": {
    "@cffnpwr/textlint-rule-sentence-per-line": true
  }
}

Options

interface Options {
  skipBlockQuote?: boolean;
}

| Option | Default | Description | | --- | --- | --- | | skipBlockQuote | true | Excludes content under quotes (BlockQuote) from inspection |

Specifying an unknown option key or an invalid value results in an error.

License

MIT