-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
137 lines (137 loc) · 5.04 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
{
"name": "code-php-cs-fixer",
"displayName": "php cs fixer",
"description": "PHP CS Fixer extension for VS Code, php formatter, php code beautify tool",
"version": "0.1.10",
"publisher": "satiromarra",
"author": "satiromarra",
"homepage": "https://github.com/satiromarra/vscode-php-cs-fixer",
"icon": "logo.png",
"badges": [
{
"description": "PayPal Donate",
"url": "https://img.shields.io/badge/Donate-PayPal-green.svg",
"href": "https://paypal.me/satiromarra"
}
],
"repository": {
"type": "git",
"url": "https://github.com/satiromarra/vscode-php-cs-fixer.git"
},
"bugs": {
"url": "https://github.com/satiromarra/vscode-php-cs-fixer/issues"
},
"engines": {
"vscode": "^1.54.0"
},
"categories": [
"Formatters",
"Linters",
"Other"
],
"activationEvents": [
"onLanguage:php"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "phpcsfixer.fix",
"title": "phpcsfixer: fix this file",
"when": "!inOutput && editorFocus && editorLangId == php"
},
{
"command": "phpcsfixer.diff",
"title": "phpcsfixer: view diff",
"when": "resourceLangId == php"
}
],
"configuration": {
"title": "PHP CS Fixer",
"type": "object",
"properties": {
"phpcsfixer.execPath": {
"type": "string",
"default": "php-cs-fixer",
"description": "Points to the php-cs-fixer executable, 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",
"scope": "resource"
},
"phpcsfixer.rules": {
"type": [
"string",
"object"
],
"default": "@PSR12",
"description": "PHP CS Fixer level setting (@PSR1, @PSR2, @Symfony). Support json formatted value. @see: https://github.com/FriendsOfPHP/PHP-CS-Fixer",
"scope": "resource"
},
"phpcsfixer.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)",
"scope": "resource"
},
"phpcsfixer.onsave": {
"type": "boolean",
"default": false,
"description": "Execute PHP CS Fixer on save",
"scope": "resource"
},
"phpcsfixer.lastUpdate": {
"type": "integer",
"default": 1,
"description": "Last downloaded phar, 0 to disable"
},
"phpcsfixer.formattingProvider": {
"type": "boolean",
"default": true,
"description": "register this extension as php document formatting provider."
},
"phpcsfixer.allowRisky": {
"type": "boolean",
"default": false,
"description": "Allow Risky?"
}
}
},
"menus": {
"explorer/context": [
{
"when": "resourceLangId == php",
"command": "phpcsfixer.fix",
"group": "phpcsfixer"
},
{
"when": "resourceLangId == php",
"command": "phpcsfixer.diff",
"group": "phpcsfixer"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run -S esbuild-base -- --minify",
"esbuild-watch": "npm run -S esbuild-base -- --watch --minify",
"makepackage": "vsce package -o dist/"
},
"devDependencies": {
"@types/node": "^12.11.7",
"@types/vscode": "^1.54.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"esbuild": "^0.12.16",
"eslint": "^7.19.0",
"typescript": "^4.1.3",
"vscode-test": "^1.5.0"
},
"dependencies": {
"node-downloader-helper": "^1.0.18"
}
}