{
  "id": "vale",
  "name": "Vale",
  "homepage": "https://vale.sh",
  "description": "A markup-aware linter for prose built with speed and extensibility in mind.",
  "icon": "https://vale.sh/apple-touch-icon.png",
  "executables": [
    "vale"
  ],
  "dotfiles": {
    "paths": [
      "~/.vale.ini",
      "~/.config/vale/.vale.ini",
      "~/Library/Application Support/vale/.vale.ini",
      "%LOCALAPPDATA%/vale/.vale.ini"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Lint prose",
    "description": "Lint files or directories with Vale. Config path, minimum alert level and output style are supported.",
    "quality": "ai-draft",
    "base": "fig:vale",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/vale.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Files or directories",
        "type": "string",
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "min_level",
        "label": "Minimum alert level",
        "type": "enum",
        "option": [
          "--minAlertLevel"
        ],
        "choices": [
          {
            "value": "suggestion",
            "label": "suggestion"
          },
          {
            "value": "warning",
            "label": "warning"
          },
          {
            "value": "error",
            "label": "error"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "output",
        "label": "Output style",
        "type": "enum",
        "option": [
          "--output"
        ],
        "choices": [
          {
            "value": "line",
            "label": "line"
          },
          {
            "value": "JSON",
            "label": "JSON"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "glob",
        "label": "Glob",
        "type": "string",
        "option": [
          "--glob"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ignore_syntax",
        "label": "Ignore syntax",
        "type": "boolean",
        "option": [
          "--ignore-syntax"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_exit",
        "label": "Never fail",
        "type": "boolean",
        "option": [
          "--no-exit"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_wrap",
        "label": "No wrap",
        "type": "boolean",
        "option": [
          "--no-wrap"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "ext",
        "label": "Stdin extension",
        "type": "string",
        "option": [
          "--ext"
        ],
        "suggestions": [
          {
            "value": ".md",
            "label": ".md"
          },
          {
            "value": ".rst",
            "label": ".rst"
          },
          {
            "value": ".adoc",
            "label": ".adoc"
          },
          {
            "value": ".html",
            "label": ".html"
          }
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "lint",
        "label": "Lint files",
        "fields": [
          "files",
          "config",
          "min_level"
        ],
        "required": [
          "files"
        ]
      },
      {
        "id": "lint-json",
        "label": "Lint as JSON",
        "set": {
          "output": [
            "JSON"
          ]
        },
        "fields": [
          "files",
          "config",
          "output"
        ],
        "required": [
          "files"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "config",
          "min_level",
          "output"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "glob",
          "ignore_syntax",
          "no_exit",
          "no_wrap",
          "ext"
        ]
      }
    ]
  }
}
