包详细信息

textlint-rule-preset-ja-spacing

textlint-ja86.2kMIT2.4.3

textlint-rule-preset-ja-spacingのルールプリセット

textlint, textlintrule

自述文件

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

更新日志

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.4.3 (2024-04-26)

Bug Fixes

  • ja-nakaguro-or-halfwidth-space-between-katakana: replace match-index with String.prototype.matchAll (#70) (648cb8e)

2.4.2 (2024-04-24)

Note: Version bump only for package textlint-rule-preset-ja-spacing

2.4.1 (2024-04-20)

Note: Version bump only for package textlint-rule-preset-ja-spacing

2.4.0 (2024-04-20)

Features

  • ja-space-between-half-and-full-width: add allows option (#64) (76da132)

2.3.1 (2024-03-10)

Bug Fixes

  • fix space after question rule's error message (#61) (614c35c)

Features

  • add ja-space-around-link to preset (#53) (6d51772)

2.3.0 (2023-01-23)

Features

  • space-between-half-and-full-width: add an option to ignore numbers and apply only to alphabets (#45) (4eec7ed)

2.2.0 (2021-07-22)

Features

  • space-between-half-and-full: add option to lint styled nodes (#30) (fcbaa66)

2.1.3 (2021-05-16)

Note: Version bump only for package textlint-rule-preset-ja-spacing

2.1.2 (2021-05-06)

Bug Fixes

  • space-around-link: リンクの後にスペースを強制する処理が正常に動作していない不具合を修正 (#27) (3f8c438)

2.1.1 (2021-05-05)

Bug Fixes

  • space-around-code: インラインコードの後にスペースを強制する処理が正常に動作していない不具合を修正 (#26) (02573de)

2.1.0 (2021-02-25)

Features

  • rule: add textlint-rule-ja-space-around-link (#22) (1d35645)

2.0.2 (2020-09-09)

Bug Fixes