{
  "name": "coc-stylua",
  "type": "commonjs",
  "version": "0.0.14",
  "description": "StyLua extension for coc.nvim.",
  "author": "wongxy <xiyao.wong@foxmail.com>",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/xiyaowong/coc-stylua"
  },
  "keywords": [
    "coc.nvim"
  ],
  "main": "lib/index.js",
  "engines": {
    "coc": "^0.0.80",
    "node": ">=18.0.0"
  },
  "activationEvents": [
    "onLanguage:lua",
    "onLanguage:luau"
  ],
  "contributes": {
    "configuration": {
      "title": "StyLua",
      "properties": {
        "stylua.releaseVersion": {
          "type": "string",
          "default": "latest",
          "markdownDescription": "The release version to install, e.g. `latest`, `v2.5.2` or `v2.5`."
        },
        "stylua.styluaPath": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
          "description": "Specifies the path of the StyLua executable, or a command name available on PATH. If not specified, will automatically download one from the GitHub releases."
        },
        "stylua.configPath": {
          "type": [
            "string",
            "null"
          ],
          "default": null,
          "description": "Specify path to stylua.toml configuration file. Passed to the language server as --config-path."
        },
        "stylua.formatOptions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "default": [],
          "markdownDescription": "Extra arguments passed to `stylua --lsp`, e.g. `[\"--indent-type\", \"Spaces\", \"--indent-width\", \"4\"]`. A single space separated string is accepted too.\n\nUse the FORMATTING OPTIONS listed by `stylua -h`: `--call-parentheses`, `--collapse-simple-statement`, `--column-width`, `--indent-type`, `--indent-width`, `--line-endings`, `--preserve-block-newline-gaps`, `--quote-style`, `--sort-requires`, `--space-after-function-names`, `--syntax`. They take precedence over `stylua.toml` and `stylua.configPath`."
        },
        "stylua.checkUpdate": {
          "type": "boolean",
          "default": true,
          "description": "Whether to check out the latest stylua version."
        }
      }
    },
    "commands": [
      {
        "command": "stylua.reinstall",
        "title": "Reinstall StyLua",
        "category": "StyLua"
      }
    ]
  },
  "scripts": {
    "build": "tsdown",
    "watch": "tsdown --watch",
    "clean": "node -e \"require('node:fs').rmSync('lib', { recursive: true, force: true })\"",
    "typecheck": "tsc --noEmit",
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "prepare": "tsdown"
  },
  "devDependencies": {
    "@types/node": "^22.20.2",
    "@types/semver": "^7.8.0",
    "@wongxy/eslint-config": "^4.0.1",
    "coc.nvim": "^0.0.83-next.27",
    "eslint": "^10.10.0",
    "semver": "^7.8.5",
    "tsdown": "^0.23.0",
    "typescript": "^5.9.3"
  }
}
