1.0.1 • Published 7 years ago

textlint-rule-no-mixed-zenkaku-and-hankaku-alphabet v1.0.1

Weekly downloads
502
License
MIT
Repository
github
Last release
7 years ago

textlint-rule-no-mixed-zenkaku-and-hankaku-alphabet Build Status

全角と半角アルファベットを混在をチェックするtextlintルール

設定で全角または半角アルファベットどちらを利用するかを変更できます。 デフォルトでは半角アルファベットを利用するようにチェックします。

OK:

ABCは半角

NG:

ABCは全角

Install

Install with npm:

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

Usage

Via .textlintrc(Recommended)

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

Via CLI

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

Options

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

Example

.textlintrc:

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

OK:

ABCは全角

NG:

ABCは半角

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu