Skip to content

Behavior

Eugene Tartakovsky edited this page May 17, 2026 · 1 revision

Behavior

  • Requires Node.js 20 or newer.
  • Requires no .textlintrc.json.
  • Requires no separate textlint install.
  • Supports inline textlint-disable comments for rule ignores.
  • Emits textlint JSON only.
  • Rejects --format and -f.
  • Exits 0 for no findings, 1 for prose findings, and 2 for command failure.

Each JSON message includes the rule ID, line, column, message, and range data when textlint provides it. Rule IDs use slopless/<rule-name> in wrapped textlint output, such as slopless/semantic-thinness.

Direct textlint use

Most users should run npx slopless "docs/**/*.md".

The package also exports a textlint preset:

{
  "filters": {
    "comments": true
  },
  "rules": {
    "preset-slopless": true
  }
}
npx textlint "docs/**/*.md"

Clone this wiki locally