-
Notifications
You must be signed in to change notification settings - Fork 45
/
package.json
174 lines (174 loc) · 6.12 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
{
"name": "php-cs-fixer",
"displayName": "php cs fixer",
"description": "PHP CS Fixer extension for VS Code, php formatter, php code beautify tool, format html",
"version": "0.3.21",
"publisher": "junstyle",
"author": "junstyle",
"license": "ISC",
"homepage": "https://github.com/junstyle/vscode-php-cs-fixer",
"icon": "logo.png",
"repository": {
"type": "git",
"url": "https://github.com/junstyle/vscode-php-cs-fixer.git"
},
"engines": {
"vscode": "^1.56.0"
},
"categories": [
"Formatters",
"Linters",
"Other"
],
"activationEvents": [
"onLanguage:php"
],
"main": "./index",
"contributes": {
"commands": [
{
"command": "php-cs-fixer.fix",
"title": "php-cs-fixer: fix this file",
"when": "!inOutput && editorFocus && editorLangId == php"
},
{
"command": "php-cs-fixer.fix2",
"title": "php-cs-fixer: fix",
"when": "explorerResourceIsFolder"
},
{
"command": "php-cs-fixer.diff",
"title": "php-cs-fixer: diff",
"when": "resourceLangId == php"
},
{
"command": "php-cs-fixer.showOutput",
"title": "php-cs-fixer: showOutput"
}
],
"configuration": {
"title": "PHP CS Fixer",
"type": "object",
"properties": {
"php-cs-fixer.executablePath": {
"type": "string",
"default": "php-cs-fixer",
"description": "Points to the php-cs-fixer exectuable, eg: win: php-cs-fixer.bat, other: php-cs-fixer; or points to php-cs-fixer.phar path, eg: /full/path/of/php-cs-fixer.phar"
},
"php-cs-fixer.executablePathWindows": {
"type": "string",
"description": "Points to the php-cs-fixer exectuable on Windows environments, eg: php-cs-fixer.bat. Useful if you are sharing settings among different environments."
},
"php-cs-fixer.rules": {
"type": [
"string",
"object"
],
"default": "@PSR12",
"description": "PHP CS Fixer rules (such as @PSR1, @PSR2, @PSR12, @PER-CS, @Symfony...). Support json formatted value. @see: https://github.com/FriendsOfPHP/PHP-CS-Fixer"
},
"php-cs-fixer.config": {
"type": "string",
"default": ".php-cs-fixer.php;.php-cs-fixer.dist.php;.php_cs;.php_cs.dist",
"description": "config file (.php-cs-fixer.php, .php-cs-fixer.dist.php, .php_cs, .php_cs.dist or custom defined) can place in workspace root folder or .vscode folder or any other folder (full path)"
},
"php-cs-fixer.allowRisky": {
"type": "boolean",
"default": false,
"description": "Are risky fixers allowed?"
},
"php-cs-fixer.pathMode": {
"type": "string",
"enum": [
"override",
"intersection"
],
"default": "override",
"description": "--path-mode can be override or intersection, intersection only works on explorer context menu action, not works for current focused file. detail see:https://github.com/FriendsOfPHP/PHP-CS-Fixer#usage"
},
"php-cs-fixer.ignorePHPVersion": {
"type": "boolean",
"default": false,
"description": "set env:PHP_CS_FIXER_IGNORE_ENV, to ignore tip `minimum and maximum php version`"
},
"php-cs-fixer.exclude": {
"type": "array",
"default": [],
"description": "--path-mode=intersection has a conflict with auto format on save, so you can use `exclude option` instead of. glob strings."
},
"php-cs-fixer.onsave": {
"type": "boolean",
"default": false,
"description": "Execute PHP CS Fixer on save"
},
"php-cs-fixer.autoFixByBracket": {
"type": "boolean",
"default": false,
"description": "when press down the key } auto fix the code in the brackets {}"
},
"php-cs-fixer.autoFixBySemicolon": {
"type": "boolean",
"default": false,
"description": "when press down the key ; auto fix the code at the current line"
},
"php-cs-fixer.formatHtml": {
"type": "boolean",
"default": false,
"description": "whether formatting html at the same time"
},
"php-cs-fixer.documentFormattingProvider": {
"type": "boolean",
"default": true,
"description": "register php document formatting provider, right mouse-click context menu, show as 'Format Document', after changing this option you should restart your editor."
},
"php-cs-fixer.tmpDir": {
"type": "string",
"default": "",
"description": "the dir for tmp files, make sure you have 'writable' permission on this dir."
},
"php-cs-fixer.lastDownload": {
"type": "integer",
"default": 1,
"description": "last automatically download php-cs-fixer time, if you want to disable auto download for latest php-cs-fixer.phar set to 0. just for automatically installed user."
}
}
},
"menus": {
"explorer/context": [
{
"when": "resourceLangId == php",
"command": "php-cs-fixer.fix2",
"group": "php-cs-fixer"
},
{
"when": "explorerResourceIsFolder",
"command": "php-cs-fixer.fix2",
"group": "php-cs-fixer"
},
{
"when": "resourceLangId == php",
"command": "php-cs-fixer.diff",
"group": "php-cs-fixer"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run build",
"esbuild-base": "esbuild ./src/index.ts --bundle --outfile=index.js --external:vscode --format=cjs --platform=node",
"build": "npm run -S esbuild-base -- --minify",
"watch": "npm run -S esbuild-base -- --sourcemap --watch"
},
"dependencies": {
"anymatch": "^3.1.3",
"htmlparser2": "^4.1.0",
"js-beautify": "^1.14.8",
"node-downloader-helper": "^1.0.19",
"php-parser": "^3.1.5"
},
"devDependencies": {
"@types/node": "^16.11.43",
"@types/vscode": "1.56.0",
"esbuild": "^0.21.4"
}
}