Socket
Book a DemoInstallSign in
Socket

textlint-rule-no-mixed-zenkaku-and-hankaku-number

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

textlint-rule-no-mixed-zenkaku-and-hankaku-number

全角と半角数値の混在をチェックするtextlintルール

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

textlint-rule-no-mixed-zenkaku-and-hankaku-number Actions Status: test

全角数値と半角数値の混在をチェックするtextlintルール

設定で全角数値または半角数値どちらを利用するかを変更できます。

デフォルトでは半角数値を利用するようにチェックします。

OK:

0123456789は半角

NG:

0123456789は全角

Install

Install with npm:

npm install textlint-rule-no-mixed-zenkaku-and-hankaku-number

Usage

Via .textlintrc(Recommended)

{
  "rules": {
    "no-mixed-zenkaku-and-hankaku-number": true
  }
}

Via CLI

textlint --rule no-mixed-zenkaku-and-hankaku-number README.md

Options

  • prefer: "全角" または "半角" を指定します
    • デフォルトは "半角" です

Example

.textlintrc:

{
  "rules": {
    "no-mixed-zenkaku-and-hankaku-number": {
      "prefer": "全角"
    }
  }
}

OK:

0123456789は全角

NG:

0123456789は半角

Running tests

Install devDependencies and Run yarn run test:

yarn && yarn run test

License

MIT

Keywords

textlintrule

FAQs

Package last updated on 24 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts