FROM node:lts-alpine3.12
RUN npm install -g [email protected] \\
textlint-rule-preset-ja-technical-writing \\
textlint-rule-preset-ja-spacing \\
textlint-rule-spellcheck-tech-word \\
textlint-plugin-asciidoctor \\
@proofdict/textlint-rule-proofdict
WORKDIR /work
ENTRYPOINT ["textlint"]
CMD ["-h"]
.textlintrc example
{
"rules": {
"preset-ja-spacing": true,
"preset-ja-spacing": {
"ja-space-between-half-and-full-width": {
"space": "always"
}
},
"spellcheck-tech-word": true,
"preset-ja-technical-writing": {
"max-kanji-continuous-len": {
"max": 6,
},
}
}
}
$ docker run --rm -v $(pwd):/work shingai4004/textlint document.md
.textlintrc example
{
"rules": {
"preset-ja-spacing": true,
"preset-ja-spacing": {
"ja-space-between-half-and-full-width": {
"space": "always"
}
},
"spellcheck-tech-word": true,
"preset-ja-technical-writing": {
"max-kanji-continuous-len": {
"max": 6,
},
}
},
"plugins": ["asciidoctor"]
}
$ docker run --rm -v $(pwd):/work shingai4004/textlint document.adoc
Content type
Image
Digest
Size
447.4 MB
Last updated
over 5 years ago
docker pull shingai4004/textlint