{"_id":"@cffnpwr/textlint-rule-no-dash","_rev":"6-0c6a3473a0f5e99ffbfa1c4d1a6c11a2","name":"@cffnpwr/textlint-rule-no-dash","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.0":{"name":"@cffnpwr/textlint-rule-no-dash","version":"0.0.0","keywords":["oidc","trusted-publishing","setup"],"_id":"@cffnpwr/textlint-rule-no-dash@0.0.0","maintainers":[{"name":"cffnpwr","email":"cffnpwr@gmail.com"}],"dist":{"shasum":"215074d3491cd1fa08fd9542483208c455007924","tarball":"https://registry.npmjs.org/@cffnpwr/textlint-rule-no-dash/-/textlint-rule-no-dash-0.0.0.tgz","fileCount":2,"integrity":"sha512-H1yKGhltv79006l5fAbkTaIhPetu1V7puAT4elXNCI2Y+23mUy9JDcl4KOsJhK3/mtWLwOdagJOsjtYA3xtdFg==","signatures":[{"sig":"MEQCID2ph6WPooTIFYSsLMujnMOh/np6HfTCE5cg/Rx11qazAiArT0E0ZuwVJGlhR/44nmmbDlL363gJ8edWUriSbKFzLg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2083},"_npmUser":{"name":"cffnpwr","email":"cffnpwr@gmail.com"},"_npmVersion":"11.17.0","description":"OIDC trusted publishing setup package for @cffnpwr/textlint-rule-no-dash","directories":{},"_nodeVersion":"26.5.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/textlint-rule-no-dash_0.0.0_1783862771655_0.9334734806055585","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@cffnpwr/textlint-rule-no-dash","version":"1.0.1","keywords":["textlintrule"],"author":{"name":"cffnpwr"},"license":"MIT","_id":"@cffnpwr/textlint-rule-no-dash@1.0.1","maintainers":[{"name":"cffnpwr","email":"cffnpwr@gmail.com"}],"homepage":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras","bugs":{"url":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras/issues"},"dist":{"shasum":"e4e24136b0d6f57257f8730e93272e6717a03ef3","tarball":"https://registry.npmjs.org/@cffnpwr/textlint-rule-no-dash/-/textlint-rule-no-dash-1.0.1.tgz","fileCount":10,"integrity":"sha512-73JNbbS3+fYN8WS6Qr77sGwH36iSvZxfI0+nS1x0r23W9j/v6Tof++pQLMcEC9HeaXwX9UKasXCNmw9uVuBO6Q==","signatures":[{"sig":"MEQCIGkN7gF8Gzoiz/5EnnJ2DMPfYNE2UrhG6hQH4w8DEzmkAiBKCV+g0Z+7d3/wfuHz3faTLxBaPN+mcbXB2+sV9yxjXw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cffnpwr%2ftextlint-rule-no-dash@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":104236},"type":"module","_from":"file:cffnpwr-textlint-rule-no-dash-1.0.1.tgz","types":"./dist/index.d.cts","exports":{".":"./src/index.ts","./package.json":"./package.json"},"scripts":{"test":"bun test src","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:04cfbcc3-9612-415b-a235-06773543402c"}},"_resolved":"/home/runner/work/textlint-rule-preset-ja-writing-extras/textlint-rule-preset-ja-writing-extras/packages/no-dash/cffnpwr-textlint-rule-no-dash-1.0.1.tgz","_integrity":"sha512-73JNbbS3+fYN8WS6Qr77sGwH36iSvZxfI0+nS1x0r23W9j/v6Tof++pQLMcEC9HeaXwX9UKasXCNmw9uVuBO6Q==","repository":{"url":"git+https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras.git","type":"git","directory":"packages/no-dash"},"_npmVersion":"11.16.0","description":"地の文・見出し・テーブルセルでのダッシュの使用を検出するtextlintルール","directories":{},"_nodeVersion":"24.18.0","dependencies":{"arktype":"2.2.2","ts-pattern":"5.9.0","@textlint/regexp-string-matcher":"2.0.2","@cffnpwr/textlint-rule-preset-ja-writing-extras-shared":"0.1.0"},"publishConfig":{"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"}},"_hasShrinkwrap":false,"devDependencies":{"@textlint/ast-node-types":"15.7.1"},"peerDependencies":{"textlint":">=15.0.0"},"inlinedDependencies":{"@textlint/types":"15.7.1","@textlint/ast-node-types":"15.7.1"},"_npmOperationalInternal":{"tmp":"tmp/textlint-rule-no-dash_1.0.1_1783867873468_0.3271022874619569","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@cffnpwr/textlint-rule-no-dash","version":"1.0.3","keywords":["textlintrule"],"author":{"name":"cffnpwr"},"license":"MIT","_id":"@cffnpwr/textlint-rule-no-dash@1.0.3","maintainers":[{"name":"cffnpwr","email":"cffnpwr@gmail.com"}],"homepage":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras","bugs":{"url":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras/issues"},"dist":{"shasum":"27446d4f92d15efe2d3d5b687ec5aa97cea38a30","tarball":"https://registry.npmjs.org/@cffnpwr/textlint-rule-no-dash/-/textlint-rule-no-dash-1.0.3.tgz","fileCount":10,"integrity":"sha512-6YUcEtpGYrIFPDCW53k+xw/jRlqrMRIeQs6Pw4FgOpXfSVjaroXfbCAb7E5G0aMKyeezdzQxjbXnqY/LQWAdGg==","signatures":[{"sig":"MEYCIQC+CotWUcxxmFlokP3VXuAZVvYHMGq1a80w9rSyGP95EAIhALSd+fKibGC6x488h03nWJJjlpbY8Q6zYEOYQHNi2BWq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cffnpwr%2ftextlint-rule-no-dash@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":85201},"type":"module","_from":"file:cffnpwr-textlint-rule-no-dash-1.0.3.tgz","types":"./dist/index.d.cts","exports":{".":"./src/index.ts","./package.json":"./package.json"},"scripts":{"test":"bun test src","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:04cfbcc3-9612-415b-a235-06773543402c"}},"_resolved":"/home/runner/work/textlint-rule-preset-ja-writing-extras/textlint-rule-preset-ja-writing-extras/packages/no-dash/cffnpwr-textlint-rule-no-dash-1.0.3.tgz","_integrity":"sha512-6YUcEtpGYrIFPDCW53k+xw/jRlqrMRIeQs6Pw4FgOpXfSVjaroXfbCAb7E5G0aMKyeezdzQxjbXnqY/LQWAdGg==","repository":{"url":"git+https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras.git","type":"git","directory":"packages/no-dash"},"_npmVersion":"11.16.0","description":"地の文・見出し・テーブルセルでのダッシュの使用を検出するtextlintルール","directories":{},"_nodeVersion":"24.18.0","dependencies":{"arktype":"2.2.3","ts-pattern":"5.9.0","@textlint/regexp-string-matcher":"2.0.2","@cffnpwr/textlint-rule-preset-ja-writing-extras-shared":"1.0.2"},"publishConfig":{"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"}},"_hasShrinkwrap":false,"devDependencies":{"@textlint/types":"15.7.1","@textlint/ast-node-types":"15.7.1"},"peerDependencies":{"textlint":">=15.0.0"},"inlinedDependencies":{"@textlint/types":"15.7.1","@textlint/ast-node-types":"15.7.1"},"_npmOperationalInternal":{"tmp":"tmp/textlint-rule-no-dash_1.0.3_1783870242568_0.041806503625264835","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@cffnpwr/textlint-rule-no-dash","version":"1.0.4","keywords":["textlintrule"],"author":{"name":"cffnpwr"},"license":"MIT","_id":"@cffnpwr/textlint-rule-no-dash@1.0.4","maintainers":[{"name":"cffnpwr","email":"cffnpwr@gmail.com"}],"homepage":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras","bugs":{"url":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras/issues"},"dist":{"shasum":"2be1b17b23def1208628ad846cb1be68700759d6","tarball":"https://registry.npmjs.org/@cffnpwr/textlint-rule-no-dash/-/textlint-rule-no-dash-1.0.4.tgz","fileCount":10,"integrity":"sha512-hATrGQpMBcY//eRoe+doy9l+6G8koMDmjrW3eMOOf9yn+154v4W4IC1Iqdp6Cu8l3uENAy3X10eFA+8rej4N/Q==","signatures":[{"sig":"MEUCIQCiCYUqWjkAAJCM7h2PDjknEHeiDUowHxXe+MQwruM3UAIgDtDLepUDeykFIkcL50IWW0DkHIZD4fCtr/LqGfFxGFM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cffnpwr%2ftextlint-rule-no-dash@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":85201},"type":"module","_from":"file:cffnpwr-textlint-rule-no-dash-1.0.4.tgz","types":"./dist/index.d.cts","exports":{".":"./src/index.ts","./package.json":"./package.json"},"scripts":{"test":"bun test src","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:04cfbcc3-9612-415b-a235-06773543402c"}},"_resolved":"/home/runner/work/textlint-rule-preset-ja-writing-extras/textlint-rule-preset-ja-writing-extras/packages/no-dash/cffnpwr-textlint-rule-no-dash-1.0.4.tgz","_integrity":"sha512-hATrGQpMBcY//eRoe+doy9l+6G8koMDmjrW3eMOOf9yn+154v4W4IC1Iqdp6Cu8l3uENAy3X10eFA+8rej4N/Q==","repository":{"url":"git+https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras.git","type":"git","directory":"packages/no-dash"},"_npmVersion":"11.16.0","description":"地の文・見出し・テーブルセルでのダッシュの使用を検出するtextlintルール","directories":{},"_nodeVersion":"24.18.0","dependencies":{"arktype":"2.2.3","ts-pattern":"5.9.0","@textlint/regexp-string-matcher":"2.0.2","@cffnpwr/textlint-rule-preset-ja-writing-extras-shared":"1.0.4"},"publishConfig":{"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"}},"_hasShrinkwrap":false,"devDependencies":{"@textlint/types":"15.7.1","@textlint/ast-node-types":"15.7.1"},"peerDependencies":{"textlint":">=15.0.0"},"inlinedDependencies":{"@textlint/types":"15.7.1","@textlint/ast-node-types":"15.7.1"},"_npmOperationalInternal":{"tmp":"tmp/textlint-rule-no-dash_1.0.4_1783875110244_0.12553183552771507","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@cffnpwr/textlint-rule-no-dash","version":"1.0.5","keywords":["textlintrule"],"author":{"name":"cffnpwr"},"license":"MIT","_id":"@cffnpwr/textlint-rule-no-dash@1.0.5","maintainers":[{"name":"cffnpwr","email":"cffnpwr@gmail.com"}],"homepage":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras","bugs":{"url":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras/issues"},"dist":{"shasum":"033dbbe7efd3fad532dec2f37c6f0d842e3ee52b","tarball":"https://registry.npmjs.org/@cffnpwr/textlint-rule-no-dash/-/textlint-rule-no-dash-1.0.5.tgz","fileCount":10,"integrity":"sha512-i+H6jwTOIWcRTJllpWVUuENhNf+Nx1wOYEysJWo4bGP9Qm09L7ONjprRcUaJ8BfXV9Y9CKAVcxSHcgDYEQw9AA==","signatures":[{"sig":"MEQCIA2O2K2TDyoDwBwztUfi+J665xtmTtex4ecrfn17bZRSAiAsXKjkS4VA36+19iN1BjmlAAE15gg6grNHG08WfEd/lw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cffnpwr%2ftextlint-rule-no-dash@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":84702},"type":"module","_from":"file:cffnpwr-textlint-rule-no-dash-1.0.5.tgz","types":"./dist/index.d.cts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"scripts":{"test":"bun test src","typecheck":"tsc --noEmit"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:04cfbcc3-9612-415b-a235-06773543402c"}},"_resolved":"/home/runner/work/textlint-rule-preset-ja-writing-extras/textlint-rule-preset-ja-writing-extras/packages/no-dash/cffnpwr-textlint-rule-no-dash-1.0.5.tgz","_integrity":"sha512-i+H6jwTOIWcRTJllpWVUuENhNf+Nx1wOYEysJWo4bGP9Qm09L7ONjprRcUaJ8BfXV9Y9CKAVcxSHcgDYEQw9AA==","repository":{"url":"git+https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras.git","type":"git","directory":"packages/no-dash"},"_npmVersion":"11.16.0","description":"地の文・見出し・テーブルセルでのダッシュの使用を検出するtextlintルール","directories":{},"_nodeVersion":"24.18.0","dependencies":{"arktype":"2.2.3","ts-pattern":"5.9.0","@textlint/regexp-string-matcher":"2.0.2","@cffnpwr/textlint-rule-preset-ja-writing-extras-shared":"1.0.5"},"_hasShrinkwrap":false,"devDependencies":{"@textlint/types":"15.7.1","@textlint/ast-node-types":"15.7.1"},"peerDependencies":{"textlint":">=15.0.0"},"inlinedDependencies":{"@textlint/types":"15.7.1","@textlint/ast-node-types":"15.7.1"},"_npmOperationalInternal":{"tmp":"tmp/textlint-rule-no-dash_1.0.5_1783878177052_0.26203962375980416","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@cffnpwr/textlint-rule-no-dash","version":"1.1.0","description":"地の文・見出し・テーブルセルでのダッシュの使用を検出するtextlintルール","homepage":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras","bugs":{"url":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras/issues"},"repository":{"type":"git","url":"git+https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras.git","directory":"packages/no-dash"},"license":"MIT","author":{"name":"cffnpwr"},"type":"module","keywords":["textlintrule"],"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"},"./package.json":"./package.json"},"types":"./dist/index.d.cts","scripts":{"test":"bun test src","typecheck":"tsc --noEmit"},"dependencies":{"@cffnpwr/textlint-rule-preset-ja-writing-extras-shared":"1.1.0","@textlint/regexp-string-matcher":"2.0.2","arktype":"2.2.3","ts-pattern":"5.9.0"},"devDependencies":{"@textlint/ast-node-types":"15.7.1","@textlint/types":"15.7.1"},"peerDependencies":{"textlint":">=15.0.0"},"inlinedDependencies":{"@textlint/ast-node-types":"15.7.1","@textlint/types":"15.7.1"},"_id":"@cffnpwr/textlint-rule-no-dash@1.1.0","_integrity":"sha512-UYgz5yYDZjr6Mr7t/P5UPpPc8xcKHsafXT1TenQMSsgV0tVWY1OYZwLH8xJU2Tuearj5sj2jHtl679JWCcojdw==","_resolved":"/home/runner/work/textlint-rule-preset-ja-writing-extras/textlint-rule-preset-ja-writing-extras/packages/no-dash/cffnpwr-textlint-rule-no-dash-1.1.0.tgz","_from":"file:cffnpwr-textlint-rule-no-dash-1.1.0.tgz","_nodeVersion":"24.18.1","_npmVersion":"11.16.0","dist":{"integrity":"sha512-UYgz5yYDZjr6Mr7t/P5UPpPc8xcKHsafXT1TenQMSsgV0tVWY1OYZwLH8xJU2Tuearj5sj2jHtl679JWCcojdw==","shasum":"77532f74e0d9b54b13d47b0061c9b68e477011d8","tarball":"https://registry.npmjs.org/@cffnpwr/textlint-rule-no-dash/-/textlint-rule-no-dash-1.1.0.tgz","fileCount":10,"unpackedSize":82556,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cffnpwr%2ftextlint-rule-no-dash@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIGdgdKJjmuomI1z+H8QEcOen1/jjURMFZIR2BkL36nFJAiASgEcpQDgeGjIShjwBvWCP3m0nFBxwspJorrtUHMsF2A=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:11afebb6-1381-426b-bc28-42ce5c9e625e"}},"directories":{},"maintainers":[{"name":"cffnpwr","email":"cffnpwr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/textlint-rule-no-dash_1.1.0_1785720952508_0.5788417277665634"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-12T13:26:11.454Z","modified":"2026-08-03T01:35:53.020Z","0.0.0":"2026-07-12T13:26:11.773Z","1.0.1":"2026-07-12T14:51:13.606Z","1.0.3":"2026-07-12T15:30:42.699Z","1.0.4":"2026-07-12T16:51:50.401Z","1.0.5":"2026-07-12T17:42:57.198Z","1.1.0":"2026-08-03T01:35:52.649Z"},"bugs":{"url":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras/issues"},"author":{"name":"cffnpwr"},"license":"MIT","homepage":"https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras","keywords":["textlintrule"],"repository":{"type":"git","url":"git+https://github.com/cffnpwr/textlint-rule-preset-ja-writing-extras.git","directory":"packages/no-dash"},"description":"地の文・見出し・テーブルセルでのダッシュの使用を検出するtextlintルール","maintainers":[{"name":"cffnpwr","email":"cffnpwr@gmail.com"}],"readme":"# @cffnpwr/textlint-rule-no-dash\n\n[![GitHub License](https://img.shields.io/github/license/cffnpwr/textlint-rule-preset-ja-writing-extras?style=flat)](./LICENSE)\n[![npm Version](https://img.shields.io/npm/v/%40cffnpwr%2Ftextlint-rule-no-dash?style=flat)](https://www.npmjs.com/package/@cffnpwr/textlint-rule-no-dash)\n[![JSR Version](https://jsr.io/badges/@cffnpwr/textlint-rule-no-dash)](https://jsr.io/@cffnpwr/textlint-rule-no-dash)\n\nA textlint rule that detects the use of dashes (`—` `―` `–`) in body text, headings, and table cells.\n\n[日本語のREADMEはこちら](./README-ja.md)\n\nIt encourages rewriting appositive or supplementary insertions with dashes (`A——挿入——B`) using\nparentheses（）, and rephrasings (`A——B`) either by splitting them into two sentences with a full\nstop or by joining them with a comma.\n\n```markdown\n<!-- NG -->\nこの機能——つまり自動保存——は便利です。\n結論は明快—シンプルが最善です。\n\n<!-- OK -->\nこの機能（自動保存）は便利です。\n結論は明快です。シンプルが最善です。\n```\n\nBy default, the en dash (`–` U+2013) is detected only when both sides are Japanese characters\n(hiragana, katakana, kanji, ー, 々). English compounds such as `Curry–Howard` and range notations\nsuch as `1–3月` are not detected.\n\nDetection is performed on the body text with markup such as emphasis and links removed. Even when a\ndash sits on a markup boundary, as in `**強調**–続き`, the detection condition is judged by the\nsurrounding body characters (「調」 and 「続」 in this example). Inline code, code blocks, HTML tags,\nimages, and autolink (`<https://…>`) URLs do not have their internal dashes detected. These are\nreplaced with dummy characters of the same length for the judgment, so in the Japanese-character\ncheck for adjacent dashes they are treated as non-Japanese characters (for example, the en dash in\n`カリー–`code`です。` is not detected because inline code immediately follows it).\nLinks in the `[表示テキスト](URL)` form target the display text for detection, not the URL.\nConsecutive dashes (such as `——`) are reported as a single error.\n\n## How to Install\n\n### npm\n\n```sh\nnpm install --save-dev @cffnpwr/textlint-rule-no-dash\n```\n\nor\n\n```sh\nnpx jsr add -D @cffnpwr/textlint-rule-no-dash\n```\n\n### yarn\n\n```sh\nyarn add --dev @cffnpwr/textlint-rule-no-dash\n```\n\nor\n\n```sh\nyarn dlx jsr add -D @cffnpwr/textlint-rule-no-dash\n```\n\n### pnpm\n\n```sh\npnpm add --save-dev @cffnpwr/textlint-rule-no-dash\n```\n\nor\n\n```sh\npnpm dlx jsr add -D @cffnpwr/textlint-rule-no-dash\n```\n\n### Bun\n\n```sh\nbun add --dev @cffnpwr/textlint-rule-no-dash\n```\n\nor\n\n```sh\nbunx jsr add -D @cffnpwr/textlint-rule-no-dash\n```\n\n### Deno\n\n```sh\ndeno add --dev npm:@cffnpwr/textlint-rule-no-dash\n```\n\nor\n\n```sh\ndeno add --dev jsr:@cffnpwr/textlint-rule-no-dash\n```\n\n## How to Use\n\nAdd it to `.textlintrc.json`.\n\n```json\n{\n  \"rules\": {\n    \"@cffnpwr/textlint-rule-no-dash\": true\n  }\n}\n```\n\n## Options\n\n```ts\ntype DashContext = \"always\" | \"japanese-both\" | \"japanese-either\";\n\ninterface Options {\n  allows?: string[];\n  dashes?: Partial<Record<\"emDash\" | \"horizontalBar\" | \"enDash\", DashContext>>;\n  skipBlockQuote?: boolean;\n}\n```\n\n| Option | Default | Description |\n| --- | --- | --- |\n| `allows` | `[]` | A list of strings or patterns to exclude from detection. In the [regexp-string-matcher](https://github.com/textlint/regexp-string-matcher) format, regular expressions can also be specified via `\"/pattern/\"`. Detections overlapping a matched range are skipped |\n| `dashes` | see below | A map of dashes to detect and their detection conditions. When specified, it overrides the entire default (it is not merged per key) |\n| `skipBlockQuote` | `true` | Excludes content under quotes (BlockQuote) from inspection |\n\nThe keys of `dashes` and their corresponding characters are as follows.\n\n| Key | Character | Default detection condition |\n| --- | --- | --- |\n| `emDash` | `—` U+2014 | `always` |\n| `horizontalBar` | `―` U+2015 | `always` |\n| `enDash` | `–` U+2013 | `japanese-both` |\n\nThe meanings of the detection conditions (`DashContext`) are as follows.\n\n| Value | Meaning |\n| --- | --- |\n| `always` | Detects unconditionally |\n| `japanese-both` | Detects only when both the preceding and following characters are Japanese |\n| `japanese-either` | Detects only when at least one of the preceding and following characters is Japanese |\n\nJapanese characters refers to hiragana, katakana, kanji, the prolonged sound mark 「ー」, and 「々」.\nSpecifying an unknown option key or an invalid value results in an error.\n\n```json\n{\n  \"rules\": {\n    \"@cffnpwr/textlint-rule-no-dash\": {\n      \"allows\": [\"カリー–ハワード\"],\n      \"dashes\": {\n        \"emDash\": \"always\",\n        \"horizontalBar\": \"always\"\n      }\n    }\n  }\n}\n```\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}