textlint-rule-preset-ja-spacing

2.4.2 • Public • Published

textlint-rule-preset-ja-spacing textlint rule

日本語周りにおけるスペースの有無を決定するtextlintルールプリセットです。

含まれているルールに関しては以下を参照してください。

それぞれのルールは個別のモジュールであるため、必要なルールのみをインストールすることも可能です。

Install

Install with npm:

npm install textlint-rule-preset-ja-spacing

Usage

Via .textlintrc(Recommended)

{
    "rules": {
        "preset-ja-spacing": true
    }
}

Via CLI

textlint --preset ja-spacing README.md

Options

デフォルトでは、textlint-rule-ja-space-around-codeは無効になっています。

次のように設定することで、プリセットに含まれるすべてのルールを有効にできます。

{
    "rules": {
        "preset-ja-spacing": {
            "ja-space-around-code": {
                "before": false,
                "after": false
            }
        }
    }
}

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

/textlint-rule-preset-ja-spacing/

    Package Sidebar

    Install

    npm i textlint-rule-preset-ja-spacing

    Weekly Downloads

    11,836

    Version

    2.4.2

    License

    MIT

    Unpacked Size

    9.51 kB

    Total Files

    6

    Last publish

    Collaborators

    • azu
    • shirayu
    • takahashim
    • textlint-user
    • hata6502