{
  "$schema": "https://json-schema.org/draft-07/schema",
  "$id": "NxStylelintProjectConfiguration",
  "title": "Add stylelint configuration to a project.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "formatter": {
      "type": "string",
      "description": "Stylelint output formatter (https://stylelint.io/user-guide/usage/options#formatter).",
      "default": "string",
      "enum": ["compact", "github", "json", "string", "tap", "unix", "verbose"],
      "x-prompt": {
        "message": "Which formatter would you like to use?",
        "type": "list",
        "items": [
          {
            "value": "compact",
            "label": "compact"
          },
          {
            "value": "github",
            "label": "github"
          },
          {
            "value": "json",
            "label": "json"
          },
          {
            "value": "string",
            "label": "string (default)"
          },
          {
            "value": "tap",
            "label": "tap"
          },
          {
            "value": "unix",
            "label": "unix"
          },
          {
            "value": "verbose",
            "label": "verbose"
          }
        ]
      },
      "x-priority": "important"
    },
    "project": {
      "type": "string",
      "description": "The name of the project.",
      "$default": {
        "$source": "projectName"
      },
      "x-priority": "important"
    },
    "scss": {
      "description": "Add SCSS Language support.",
      "type": "boolean",
      "default": false,
      "x-priority": "important"
    },
    "skipFormat": {
      "description": "Skip formatting files.",
      "type": "boolean",
      "default": false
    }
  },
  "required": ["project"]
}
