{
  "$schema": "http://json-schema.org/schema",
  "$id": "StorybookConfiguration",
  "title": "Adds Storybook configuration to a project.",
  "description": "Adds Storybook configuration to a project to be able to use and create stories.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "aliases": ["project", "projectName"],
      "description": "Project for which to generate Storybook configuration.",
      "$default": {
        "$source": "argv",
        "index": 0
      },
      "x-prompt": "For which project do you want to generate Storybook configuration?",
      "x-dropdown": "projects",
      "x-priority": "important"
    },
    "linter": {
      "description": "The tool to use for running lint checks.",
      "type": "string",
      "enum": ["eslint", "none"],
      "default": "eslint"
    },
    "js": {
      "type": "boolean",
      "description": "Generate JavaScript story files rather than TypeScript story files.",
      "default": false
    },
    "tsConfiguration": {
      "type": "boolean",
      "description": "Configure your project with TypeScript. Generate main.ts and preview.ts files, instead of main.js and preview.js.",
      "default": true,
      "x-priority": "important"
    },
    "qwikCitySupport": {
      "type": "string",
      "enum": ["true", "false", "auto"],
      "x-priority": "important",
      "description": "Whether to add support for the qwik city. By default, it will be added for applications, not libraries.",
      "default": "auto"
    }
  },
  "required": ["name"]
}
