Skip to content

shimizukawa/docker-textlint-many-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

textlint-many-rules

Docker container with textlint.

Docker URL https://hub.docker.com/r/shimizukawa/textlint-many-rules/

Based upon https://hub.docker.com/r/shimizukawa/textlint-rst/

Rules

Base container miy4/textlint contains textlint rules as follows:

And this also contains:

See also: https://hub.docker.com/r/miy4/textlint/

Plugins

This image contains textlint plugins as follows:

Installation

To pull:

$ docker pull shimizukawa/textlint-many-rules

Usage

$ vi .textlintrc
# Edit textlint configurations

See textlint/docs/configuring.md and textlint/examples/config-file/ for more details.

For example:

{
  "plugins": [
    "rst"
  ],
  "rules": {
    "max-ten": {
      "max": 3
    },
    "spellcheck-tech-word": true,
    "no-mix-dearu-desumasu": true,
    "sentence-length": true,
    "prh": {
      "rulePaths": ["./WEB+DB_PRESS.yml"]
    },
    "preset-jtf-style": true,
    "no-double-negative-ja": true,
    "no-doubled-joshi": {
      "min_interval": 1,
      "strict": false,
      "allow": []
    },
    "ja-no-weak-phrase": true,
    "max-kanji-continuous-len": true
  }
}

Run as

$ docker run --rm -v ${PWD}:/data -w /data shimizukawa/textlint-many-rules <TEXTLINT_ARGS>

docker run accept and pass a set of parameters to textlint CLI.