{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/es6-import-sorter-es6importsorterrc-json/latest.json",
  "title": "JSON schema for ES6 Import Sorter",
  "x-lintel": {
    "source": "https://www.schemastore.org/es6importsorterrc.json",
    "sourceSha256": "abeca0b9ae5b6a29d04e18e45e4509dc48287c9b0ac5f44cd7cc76ebf1a4c9a1",
    "fileMatch": [
      ".es6importsorterrc.json"
    ],
    "parsers": [
      "json"
    ]
  },
  "type": "object",
  "properties": {
    "sourcePrefixes": {
      "description": "The prefixes of your source imports. Ex: import sth from '@data' => '@' can considered as a sourcePrefix",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "sectionPrefix": {
      "description": "The prefix of your section title",
      "type": "string"
    },
    "sectionNames": {
      "description": "The names (which comes right after 'sectionPrefix') of your section title",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "startImportBlockSign": {
      "description": "The sign to mark the start of import block. Default is '' - the start of the file",
      "default": "",
      "type": "string"
    },
    "endImportBlockSign": {
      "description": "The sign to mark the end of import block. Default is '' - the first empty line",
      "default": "",
      "type": "string"
    },
    "statementTerminator": {
      "description": "The sign to mark the end of an import statement. Default is ';'",
      "default": ";",
      "type": "string"
    },
    "preCommands": {
      "description": "The command list run before sorting",
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "string",
            "description": "string value means terminal command"
          },
          {
            "type": "object",
            "description": "Define command with vscode command option",
            "properties": {
              "command": {
                "type": "string",
                "description": "the command you need to execute before sorting. It can be terminal command or vscode command",
                "minLength": 1
              },
              "system": {
                "description": "Define the system will execute the command",
                "default": "terminal",
                "oneOf": [
                  {
                    "enum": [
                      "vscode"
                    ],
                    "description": "Command will be executed as vscode command"
                  },
                  {
                    "enum": [
                      "terminal"
                    ],
                    "description": "Command will be executed as terminal command"
                  }
                ]
              }
            },
            "required": [
              "command"
            ],
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "id": "https://json.schemastore.org/base-04.json",
  "additionalProperties": false
}
