Sign inSign up

shingai4004/textlint

By shingai4004

Updated over 5 years ago

Image
0

149

shingai4004/textlint repository overview

Dockerfile

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"]

Usage

Markdown
  • document.md
  • .textlintrc

.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
Asciidoc
  • document.adoc
  • .textlintrc

.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

Tag summary

Content type

Image

Digest

Size

447.4 MB

Last updated

over 5 years ago

docker pull shingai4004/textlint