-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
208 lines (208 loc) · 6.05 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
{
"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"
}