textlint-rule-preset-ja-spacing

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

Usage no npm install needed!

<script type="module">
  import textlintRulePresetJaSpacing from 'https://cdn.skypack.dev/textlint-rule-preset-ja-spacing';
</script>

README

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