{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/omletrc/latest.json",
  "x-lintel": {
    "source": "https://www.schemastore.org/omletrc.json",
    "sourceSha256": "9993a657728bd9147ac93e148f5197e9bebc593267f984a66b2fefbc3c5b3048",
    "fileMatch": [
      ".omletrc",
      ".omletrc.json",
      ".omletrc.yaml",
      ".omletrc.yml",
      "omletrc",
      "omletrc.json",
      "omletrc.yaml",
      "omletrc.yml"
    ],
    "parsers": [
      "json",
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "description": "The schema that the configuration file uses.",
      "const": "https://www.schemastore.org/omletrc.json"
    },
    "include": {
      "type": "array",
      "description": "Filenames or glob patterns that will be included in the scan.",
      "items": {
        "type": "string"
      },
      "minItems": 1
    },
    "ignore": {
      "type": "array",
      "description": "Filenames or glob patterns that will be excluded from the scan.",
      "items": {
        "type": "string"
      }
    },
    "tsconfigPath": {
      "$ref": "#/$defs/tsconfigPath"
    },
    "aliases": {
      "$ref": "#/$defs/aliases"
    },
    "exports": {
      "$ref": "#/$defs/exports"
    },
    "workspaces": {
      "type": "object",
      "description": "Package-specific configurations if you have a monorepo.",
      "additionalProperties": {
        "type": "object",
        "description": "Package-specific configuration.",
        "properties": {
          "tsconfigPath": {
            "$ref": "#/$defs/tsconfigPath"
          },
          "aliases": {
            "$ref": "#/$defs/aliases"
          },
          "exports": {
            "$ref": "#/$defs/exports"
          }
        },
        "additionalProperties": false
      }
    },
    "hookScript": {
      "type": "string"
    }
  },
  "$defs": {
    "tsconfigPath": {
      "type": "string",
      "description": "Path to your tsconfig file."
    },
    "aliases": {
      "type": "object",
      "additionalProperties": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "exports": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "object",
          "additionalProperties": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            ]
          }
        }
      ]
    }
  },
  "additionalProperties": false
}
