-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
package.json
228 lines (228 loc) · 6.87 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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
{
"name": "vscode-blade-formatter",
"publisher": "shufo",
"displayName": "Laravel Blade formatter",
"description": "Laravel Blade formatter for VSCode",
"version": "0.24.4",
"license": "MIT",
"engines": {
"vscode": "^1.57.0",
"node": ">= 10.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/shufo/vscode-blade-formatter.git"
},
"categories": [
"Formatters"
],
"keywords": [
"blade",
"formatter",
"laravel",
"template"
],
"galleryBanner": {
"color": "#ffe04b",
"theme": "light"
},
"author": "Shuhei Hayashibara <@shufo>",
"icon": "icon.png",
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "vscode-blade-formatter.format",
"title": "Blade: Format Document"
}
],
"jsonValidation": [
{
"fileMatch": ".bladeformatterrc.json",
"url": "./schemas/bladeformatterrc.schema.json"
},
{
"fileMatch": ".bladeformatterrc",
"url": "./schemas/bladeformatterrc.schema.json"
}
],
"languages": [
{
"id": "blade",
"aliases": [
"Blade",
"blade"
],
"extensions": [
".blade.php"
]
},
{
"id": "json",
"filenames": [
".bladeformatterrc"
]
}
],
"configuration": {
"type": "object",
"title": "Blade Formatter",
"properties": {
"bladeFormatter.format.enabled": {
"type": "boolean",
"default": true,
"markdownDescription": "Whether it enables format"
},
"bladeFormatter.format.indentSize": {
"type": "integer",
"default": 4,
"markdownDescription": "Indent size"
},
"bladeFormatter.format.wrapLineLength": {
"type": "integer",
"default": 120,
"markdownDescription": "The length of line wrap size"
},
"bladeFormatter.format.wrapAttributes": {
"type": "string",
"default": "auto",
"enum": [
"auto",
"force",
"force-aligned",
"force-expand-multiline",
"aligned-multiple",
"preserve",
"preserve-aligned"
],
"markdownDescription": "The way to wrap attributes"
},
"bladeFormatter.format.wrapAttributesMinAttrs": {
"type": "number",
"default": 2,
"markdownDescription": "Minimum number of html tag attributes for force wrap attribute options. Wrap the first attribute only if `force-expand-multiline` is specified in wrap attributes"
},
"bladeFormatter.format.useTabs": {
"type": "boolean",
"default": false,
"markdownDescription": "Use tab as indentation character"
},
"bladeFormatter.format.sortTailwindcssClasses": {
"type": "boolean",
"default": false,
"markdownDescription": "Sort Tailwindcss Classes automatically"
},
"bladeFormatter.format.sortHtmlAttributes": {
"type": "string",
"default": "none",
"enum": [
"none",
"alphabetical",
"code-guide",
"idiomatic",
"vuejs",
"custom"
],
"markdownDescription": "Sort HTML Attributes in the specified order"
},
"bladeFormatter.format.noMultipleEmptyLines": {
"type": "boolean",
"default": false,
"markdownDescription": "Collapses multiple blank lines into a single blank line"
},
"bladeFormatter.format.noPhpSyntaxCheck": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable PHP syntax check. Enabling this will suppress PHP syntax error reporting."
},
"bladeFormatter.format.customHtmlAttributesOrder": {
"type": "string",
"default": "",
"markdownDescription": "Comma separated custom HTML attributes order. e.g. `id, data-.+, class, name`. To enable this you must specify sort html attributes option as `custom`. You can use regex for attribute names."
},
"bladeFormatter.format.indentInnerHtml": {
"type": "boolean",
"default": false,
"markdownDescription": "Indent `<head>` and `<body>` tag sections in html"
},
"bladeFormatter.format.noSingleQuote": {
"type": "boolean",
"default": false,
"markdownDescription": "Use double quotes instead of single quotes for php expression."
},
"bladeFormatter.misc.dontShowNewVersionMessage": {
"type": "boolean",
"default": false,
"markdownDescription": "If set to 'true', the new version message won't be shown anymore."
}
}
}
},
"activationEvents": [
"onLanguage:blade"
],
"scripts": {
"lint": "biome lint .",
"fix": "biome lint . --apply",
"format": "biome format . --write",
"format:check": "biome format . --test",
"pretest": "yarn run compile && yarn run compile-tests",
"test": "node ./out/test/runTest.js",
"pretest:e2e": "yarn run compile && yarn run compile-tests",
"test:e2e": "node ./out/test/runE2ETest.js",
"compile": "webpack --progress",
"build": "webpack --progress",
"watch": "webpack --watch",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -w -p . --outDir out",
"package-extension": "webpack --mode production --devtool hidden-source-map --progress",
"changelog": "conventional-changelog -i CHANGELOG.md -p eslint -s -r 0",
"package": "vsce package --yarn",
"publish": "vsce publish --yarn"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@jest/types": "^29.0.0",
"@types/find-config": "^1.0.1",
"@types/glob": "^8.0.0",
"@types/mocha": "10.0.10",
"@types/node": "^22.0.0",
"@types/tailwindcss": "^3.1.0",
"@types/vscode": "^1.57.0",
"@types/webpack-env": "^1.18.1",
"@vscode/test-electron": "^2.3.8",
"@vscode/vsce": "^3.0.0",
"app-root-path": "^3.0.0",
"babel-jest": "^29.0.0",
"conventional-changelog-cli": "^4.0.0",
"debug": "4.4.0",
"dotenv-webpack": "8.1.0",
"glob": "8.1.0",
"mocha": "^11.0.0",
"sponsorkit": "0.16.2",
"ts-jest": "29.2.5",
"ts-loader": "9.5.1",
"ts-migrate": "0.1.35",
"ts-node": "10.9.2",
"typescript": "5.7.2",
"webpack": "5.90.1",
"webpack-cli": "6.0.1",
"webpack-node-externals": "^3.0.0"
},
"dependencies": {
"ajv": "^8.12.0",
"blade-formatter": "1.42.0",
"find-config": "^1.0.0",
"ignore": "^6.0.0",
"sucrase": "^3.35.0",
"tailwindcss": "^3.4.17",
"vscode-extension-telemetry": "^0.4.5"
},
"optionalDependencies": {
"fsevents": "*",
"kind-of": "*"
},
"sponsor": {
"url": "https://github.com/sponsors/shufo"
}
}