Skip to content

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

License

Notifications You must be signed in to change notification settings

textlint-ja/textlint-rule-no-mixed-zenkaku-and-hankaku-alphabet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

全角と半角アルファベットの混在をチェックする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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published