reactjs / ja.react.dev

React documentation website in Japanese

Home Page:https://ja.react.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create reactjs/textlint-checker-for-react-jp-docs

potato4d opened this issue · comments

I would like to create a repository for the dedicated TextLint rule package "reactjs/textlint-checker-for-react-jp-docs".

That will contribute to improving the quality of future translations.

But, we have other higher priority tasks.
Although this work may not be possible now,let's first write down the rules necessary for this Issue.

For now, most common errors I'd love to be linted are:

  • Extra space after Japanese period and the following sentence (e.g., …です。 そして). This typically happens when someone copied text from Crowdin, and it's very hard to detect.
  • No space between Latin alphabet and fullwidth character (e.g., 第1に)

I found that textlint can import locally-defined rules via --rulesdir option, so maintaining a separate package may not be necessary.

"scripts": {
  "lint:text": "textlint --rulesdir=./textlint content/{docs,home,tutorial,warnings}/*.md"
}

And we can put rule files directly under the textlint directory.

一旦第一段階はできたとして、クローズしておきましょう!
またルールを追加する場合は、個別で!