{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "additionalProperties": false,
  "id": "https://json.schemastore.org/base-04.json",
  "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"
                  }
                ]
              }
            },
            "additionalProperties": false,
            "required": ["command"]
          }
        ]
      }
    }
  },
  "title": "JSON schema for ES6 Import Sorter",
  "type": "object"
}