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

textlint-rule-preset-bengo4

v2.2.2

Published

弁護士ドットコムで使われているtextlintプリセット

Readme

textlint-rule-preset-bengo4

Test

弁護士ドットコムで使われているtextlintプリセット

Installation

Install with npm:

npm install textlint-rule-preset-bengo4

Usage

すべてのルールを有効化して使う場合は、次のように設定してください。

{
  "rules": {
    "preset-bengo4": true
  }
}

Settings

表記ゆれ修正用の辞書の設定にはtextlint-rule-prhを使っています。 対応用語はdict/フォルダに入っている.ymlを確認してください。

Default Rule list

  • 一般的な文書で利用するためのルール(二重否定、ら抜き表現、一文の文字数ほか)
    • https://github.com/textlint-ja/textlint-rule-preset-japanese
      • 一文で使える"、"の数
        • https://github.com/textlint-ja/textlint-rule-max-ten
      • 逆接の接続助詞「が」が、同一文中に複数回出現していないかどうか
        • https://github.com/takahashim/textlint-rule-no-doubled-conjunctive-particle-ga
      • 同じ接続詞で開始されていることを検出
        • https://github.com/takahashim/textlint-rule-no-doubled-conjunction
      • 二重否定の検出
        • https://github.com/textlint-ja/textlint-rule-no-double-negative-ja
      • 二重助詞の検出
        • https://github.com/textlint-ja/textlint-rule-no-doubled-joshi
      • 一文の最大の長さ
        • https://github.com/azu/textlint-rule-sentence-length
      • ら抜き言葉を使用しない
        • https://github.com/azu/textlint-rule-no-dropping-the-ra
      • 文の敬体(ですます調)、常体(である調)の混合をチェック
        • https://github.com/textlint-ja/textlint-rule-no-mix-dearu-desumasu
      • ホ゜ケット エンシ゛ン のような、Mac OS XでPDFやFinderからのコピペで発生する濁点のチェック
        • https://github.com/azu/textlint-rule-no-nfd
      • 制御文字の検出
        • https://github.com/textlint-rule/textlint-rule-no-invalid-control-character
      • ゼロ幅スペースの検出
        • https://github.com/textlint-rule/textlint-rule-no-zero-width-spaces
      • 康煕部首の検出
        • https://github.com/xl1/textlint-rule-no-kangxi-radicals
  • JTF日本語標準スタイルガイドのルール
    • https://github.com/textlint-ja/textlint-rule-preset-JTF-style
  • 表記ルール(ひらく漢字)
    • https://github.com/lostandfound/textlint-rule-ja-hiragana-keishikimeishi
    • https://github.com/lostandfound/textlint-rule-ja-hiragana-fukushi
    • https://github.com/lostandfound/textlint-rule-ja-hiragana-hojodoushi
  • 冗長な表現
    • https://github.com/textlint-ja/textlint-rule-ja-no-redundant-expression
  • 敬体(ですます調)と常体(である調)の混在をチェック
    • https://github.com/textlint-ja/textlint-rule-no-mix-dearu-desumasu
  • 対のカッコがあることをチェック
    • https://github.com/textlint-rule/textlint-rule-no-unmatched-pair

Development

npm ci
npx husky install

Commit message

コミットメッセージはAngularのコミットメッセージフォーマットに従ってください。

それによりリリースを自動化しています。詳しくはリリース参照

よく使うものを掲載します。scopeは不要です。

<種別>: <具体的な変更内容>

例
fix: 日本語の副詞「と」のルールを修正

| 種別 | 内容 | マージリリース| バージョン | | -- | -- | -- | -- | | feat | 新しい機能 | 〇 | Miner Release | | fix | バグ修正&軽微な修正 | 〇 | Patch Release | | perf | コードのパフォーマンス修正 | 〇 | Major Release | | BREAKING CHANGE | 互換性のない破壊的変更 | 〇 | Major Release | | refactor| バグ修正や機能追加のないリファクタリング | | | | test | テストパターンの追加や既存テストの修正 | | | | docs | ドキュメントの変更 | | | | chore | ビルドプロセスの改善など、上記に該当しないもの | | |

Example execute

exampleフォルダ内のテストコードを実行します。

npm run example

Tests

testフォルダ内のテストコードを実行します。

testの詳細はtextlint-testerを参照してください。

npm test

Release

semantic-releaseで、GitHub Actionでmainブランチにマージするとリリースされます。

大まかな処理のステップは4段階です。

  1. 既存のGitタグと、コミットの解析で自動バージョン決め
  2. Gitのタグうち
  3. CHANGELOG.md自動作成&コミット
  4. npmへのパッケージ公開