JSPM

textlint-rule-ja-overlooked-typo

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q68333F
  • License MIT

見逃しがちなタイプミスを検出します

Package Exports

  • textlint-rule-ja-overlooked-typo
  • textlint-rule-ja-overlooked-typo/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (textlint-rule-ja-overlooked-typo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

textlint-rule-ja-overlooked-typo

npm version Node.js CI textlint rule

textlint-rule-ja-tojihiraki は見逃しそうなタイプミスを検出します。

例:

  • カタカナに混じる漢字
    • 二ュートンニュートン
  • カタカナに混じるひらがな
    • タぺストリータペストリー
  • ひらがなに混じるカタカナ
    • たいヘんたいへん

インストール

npm install -g textlint-rule-ja-overlooked-typo

使い方

.textlintrc を利用する場合

{
    "rules": {
        "ja-overlooked-typo": true
    }
}

CLIから利用する場合

textlint --rule ja-overlooked-typo README.md

オプション

  • allow:例外とする文字列のリスト
    • "$num$":カタカナの単位等で数字が入る場合に含める(漢数字が入る場合を例外として扱います)
{
  "rules": {
    "ja-overlooked-typo": {
      "allow": ["$num$ペニー"]
    }
  }
}

開発

ビルド

npm run build

テスト

npm test