# textlint-rule-no-exists-file

> リンクの相対パスと Current Root 指定のパスの存在を検出する

Latest version **0.1.2** (published 2022-05-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install textlint-rule-no-exists-file
pnpm add textlint-rule-no-exists-file
yarn add textlint-rule-no-exists-file
bun add textlint-rule-no-exists-file
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2022-05-30 |
| First published | 2022-05-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ryurock |
| Maintainers | ryurock |
| Keywords | textlintrule |

## Links

- npm: https://www.npmjs.com/package/textlint-rule-no-exists-file
- Repository: https://github.com/ryurock/textlint-rule-no-exists-file
- Homepage: https://github.com/ryurock/textlint-rule-no-exists-file#readme
- Issues: https://github.com/ryurock/textlint-rule-no-exists-file/issues
- npm.io page: https://npm.io/package/textlint-rule-no-exists-file

## 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

- 0.1.2 (latest) — 2022-05-30
- 0.1.1 — 2022-05-29
- 0.1.0 — 2022-05-29

## README

# textlint-rule-no-exists-file

リンクの相対パスと Current Root 指定のパスの存在をチェックする [textlint](https://github.com/textlint/textlint) ルールです。
# Installation

```bash
npm install @textlint-ja/textlint-rule-no-exists-file
```

# Getting Started

開発方法について

## textlint rule の対象リポジトリをマウントする

`docker-compose.yaml` でテストしたい対象のディレクトリを指定してマウントします。

```yaml
version: "3"
services:
  app:
    privileged: true
    container_name: "textlint-rule-no-exists-file"
    build:
      dockerfile: Dockerfile
      context: ./
    volumes:
      - ./:/app
      - node_modules_volume:/app/node_modules
      # マウント先を指定する
      - $HOME/path/to/path:/docker/path/to/path
```

## コンテナにログイン


```bash
docker compose exec app bash --login
```

## textlint-rule-no-exists-file をビルドする

```bash
npm run build
```

## マウントしたディレクトリに移動する


```bash
cd /docker/path/to/path
```

下記コマンドでルールをテストします


## textlint-rule-no-exists-file をテストする

```bash
npx textlint --rulesdir /app/lib/ docs/
```

## 注意事項

テスト対象のディレクトリの `.textlintrc` で `"textlint-rule-no-exists-file": true` を入れていると修正が反映されないのでご注意ください。

```
{
  "filters": {},
  "rules": {
    # false を指定すること
    "textlint-rule-no-exists-file": false
  }
}

```

# Build

`lib` 以下にコードが作成されます。

```bash
npm run build
```

# Test

```bash
npx textlint --rulesdir lib/ file.md -f pretty-error
```

---
_Source: https://npm.io/package/textlint-rule-no-exists-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
