# textlint-rule-ja-space-around-link

> リンクの周りをスペースで囲むかどうかを決めるtextlintルール

Latest version **3.0.3** (published 2026-08-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install textlint-rule-ja-space-around-link
pnpm add textlint-rule-ja-space-around-link
yarn add textlint-rule-ja-space-around-link
bun add textlint-rule-ja-space-around-link
```

## Health

**Score 60/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.3 |
| Published | 2026-08-07 |
| First published | 2021-02-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 17.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 105 |
| Author | 0x6b |
| Maintainers | azu |
| Keywords | textlint, textlintrule |

## Links

- npm: https://www.npmjs.com/package/textlint-rule-ja-space-around-link
- Repository: https://github.com/textlint-ja/textlint-rule-preset-ja-spacing
- Issues: https://github.com/textlint-ja/textlint-rule-preset-ja-spacing/issues
- npm.io page: https://npm.io/package/textlint-rule-ja-space-around-link

## Dependencies (1)

- [textlint-rule-helper](https://npm.io/package/textlint-rule-helper.md) ^2.2.4

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 3.0.3 (latest) — 2026-08-07
- 3.0.2 — 2026-06-22
- 3.0.1 — 2026-06-22
- 3.0.0 — 2026-05-31
- 2.4.2 — 2024-04-24
- 2.4.1 — 2024-04-20
- 2.3.1 — 2024-03-10
- 2.2.0 — 2021-07-22
- 2.1.3 — 2021-05-16
- 2.1.2 — 2021-05-06
- 2.1.0 — 2021-02-25

## README

# textlint-rule-ja-space-around-link [![textlint rule](https://img.shields.io/badge/textlint-fixable-green.svg?style=social)](https://textlint.github.io/)

リンクの周りをスペースで囲むかどうかを決めるtextlintルール

リンクとは[TxtAST](https://github.com/textlint/textlint/blob/master/docs/txtnode.md "TxtAST")の`Link` nodeのことです。

このルールでは、リンクの前後が日本語である場合に半角スペースを入れるかを決定します。
オプションでスペースの有無を決定できます。

    [README](README.md) と日本語の間はスペースを空ける
    [README](README.md)と日本語の間はスペースを空けない

## Install

Install with [npm](https://www.npmjs.com/):

    npm install textlint-rule-ja-space-around-link

## Usage

Via `.textlintrc`(Recommended)

```json
{
    "rules": {
        "ja-space-around-link": true
    }
}
```

Via CLI

```
textlint --rule ja-space-around-link README.md
```


## Options

- `before`: `boolean`
    - デフォルト: `false`
    - `true`なら、`Link`の前に半角スペースを入れる
- `after`: `boolean`
    - デフォルト: `false`
    - `true`なら、`Link`の後に半角スペースを入れる

デフォルト値は次のようになります。

```json
{
    "rules": {
        "ja-space-around-link": {
            "before": false,
            "after": false
        }
    }
}
```

## Fixable

[![textlint rule](https://img.shields.io/badge/textlint-fixable-green.svg?style=social)](https://textlint.github.io/)

`textlint --fix`の自動修正に対応しています。

## Changelog

See [Releases page](https://github.com/textlint-ja/textlint-rule-preset-ja-spacing/releases).

## 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](https://github.com/textlint-ja/textlint-rule-preset-ja-spacing/issues).

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

- [github/0x6b](https://github.com/0x6b)

## License

MIT © 0x6b

---
_Source: https://npm.io/package/textlint-rule-ja-space-around-link · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
