coc-php-cs-fixer
Version:
PHP CS Fixer (PHP Coding Standards Fixer) and Laravel Pint extension for coc.nvim
209 lines (208 loc) • 6.2 kB
JSON
{
"name": "coc-php-cs-fixer",
"version": "0.7.10",
"description": "PHP CS Fixer (PHP Coding Standards Fixer) and Laravel Pint extension for coc.nvim",
"author": "yaegassy <yosstools@gmail.com>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"php",
"php-cs-fixer",
"pint",
"laravel",
"formatter",
"vim",
"neovim"
],
"engines": {
"coc": "^0.0.80"
},
"repository": {
"type": "git",
"url": "https://github.com/yaegassy/coc-php-cs-fixer"
},
"scripts": {
"schema": "curl -o schemas/pint-schema.json https://raw.githubusercontent.com/open-southeners/vscode-laravel-pint/main/pint-schema.json && node scripts/check-schema.mjs",
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"build": "node esbuild.js",
"prepare": "node esbuild.js"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"semi": true
},
"devDependencies": {
"@types/node": "^18.16.18",
"@types/node-fetch": "^2.6.2",
"@types/tmp": "^0.2.3",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"@typescript-eslint/parser": "^5.60.1",
"coc.nvim": "^0.0.82",
"esbuild": "^0.16.17",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"https-proxy-agent": "^5.0.1",
"node-fetch": "^2.6.7",
"prettier": "^2.8.8",
"rimraf": "^3.0.2",
"tmp": "^0.2.1",
"typescript": "~5.0.4"
},
"activationEvents": [
"onLanguage:php"
],
"contributes": {
"jsonValidation": [
{
"fileMatch": "pint.json",
"url": "./schemas/pint-schema.json"
}
],
"configuration": {
"type": "object",
"title": "coc-php-cs-fixer configuration",
"rootPatterns": [
{
"filetype": "php",
"patterns": [
".php-cs-fixer.php",
".php-cs-fixer.dist.php",
"pint.json"
]
}
],
"properties": {
"php-cs-fixer.enable": {
"type": "boolean",
"default": true,
"description": "Enable coc-php-cs-fixer extension"
},
"php-cs-fixer.activateTool": {
"type": "string",
"default": "php-cs-fixer",
"description": "",
"enum": [
"php-cs-fixer",
"pint"
]
},
"php-cs-fixer.toolPath": {
"type": "string",
"default": "",
"description": "The path to the php-cs-fixer tool"
},
"php-cs-fixer.config": {
"type": "string",
"default": "",
"description": "Path to php-cs-fixer config file (--config)"
},
"php-cs-fixer.useCache": {
"type": "boolean",
"default": false,
"description": "Use a cache file when fixing files (--using-cache)"
},
"php-cs-fixer.allowRisky": {
"type": "boolean",
"default": false,
"description": "Are risky fixers allowed (--allow-risky)"
},
"php-cs-fixer.rules": {
"type": "string",
"default": "@PSR12",
"description": "Rules to use when fixing files (--rules)"
},
"php-cs-fixer.enableIgnoreEnv": {
"type": "boolean",
"default": false,
"description": "Add the environment variable PHP_CS_FIXER_IGNORE_ENV=1 and run php-cs-fixer"
},
"php-cs-fixer.downloadCheckOnStartup": {
"type": "boolean",
"default": true,
"description": "If `php-cs-fixer` or `pint` is not present at startup, run the built-in download. The tool to be downloaded will follow the `php-cs-fixer.activateTool` configuration"
},
"php-cs-fixer.downloadMajorVersion": {
"type": "number",
"enum": [
2,
3
],
"default": 3,
"description": "Specify the major version of php-cs-fixer to download for the extension",
"scope": "window"
},
"php-cs-fixer.pint.toolPath": {
"type": "string",
"default": "",
"description": "The path to the pint tool"
},
"php-cs-fixer.pint.config": {
"type": "string",
"default": "",
"description": "Path to pint.json config file (--config)"
},
"php-cs-fixer.pint.preset": {
"type": "string",
"default": "laravel",
"description": "Presets define a set of rules that can be used to fix code style issues in your code (--preset)",
"enum": [
"laravel",
"psr12",
"symfony"
]
},
"php-cs-fixer.enableFormatProvider": {
"type": "boolean",
"default": true,
"description": "Enable format provider"
},
"php-cs-fixer.enableActionProvider": {
"type": "boolean",
"default": true,
"description": "Enable codeAction provider"
},
"php-cs-fixer.terminal.enableSplitRight": {
"type": "boolean",
"default": false,
"description": "Use vertical belowright for dryRunDiff and pintTest terminal window"
}
}
},
"commands": [
{
"command": "php-cs-fixer.fix",
"title": "Run php-cs-fixer fix"
},
{
"command": "php-cs-fixer.dryRunDiff",
"title": "Run php-cs-fixer fix with --dry-run and --diff in a terminal window"
},
{
"command": "php-cs-fixer.pintFix",
"title": "Run pint"
},
{
"command": "php-cs-fixer.pintTest",
"title": "Run pint with --test in a terminal window"
},
{
"command": "php-cs-fixer.download",
"title": "Download php-cs-fixer"
},
{
"command": "php-cs-fixer.pintDownload",
"title": "Download pint"
},
{
"command": "php-cs-fixer.showOutput",
"title": "Show php-cs-fixer output channel"
}
]
},
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}