ブログやドキュメントを頻繁に書くので、良い文章を書くために導入してみる。
yarn add -D \ textlint \ textlint-rule-preset-ja-spacing \ textlint-rule-preset-ja-technical-writing \ textlint-rule-spellcheck-tech-word
yarn textlint --init
yarn textlint ./public-docs/* yarn textlint ./public-docs/* --fix # 自動修正
touch prh.yml
textlintrc
に追記する。
{ ... "spellcheck-tech-word": true, "prh": { "rulePaths": [ "./prh.yml" ] } } }
prh.yml
version: 1 rules: - expected: Google specs: - from: google to: Google - expected: GitHub specs: - from: github to: GitHub