-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
306 lines (306 loc) · 10.1 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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
{
"name": "coc-blade",
"version": "0.18.11",
"description": "Laravel Blade Templates extension for coc.nvim",
"author": "yaegassy <yosstools@gmail.com>",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim",
"php",
"laravel",
"blade",
"formatter",
"linter",
"vim",
"neovim"
],
"engines": {
"coc": "^0.0.80"
},
"repository": {
"type": "git",
"url": "https://github.com/yaegassy/coc-blade"
},
"scripts": {
"schema": "curl -o schemas/bladeformatterrc.schema.json https://raw.githubusercontent.com/shufo/vscode-blade-formatter/master/schemas/bladeformatterrc.schema.json",
"snippets": "yarn snippets:blade && yarn snippets:helper && yarn snippets:livewire && yarn snippets:snippets && node scripts/fixSnippets.js && yarn data:format",
"snippets:blade": "curl -o data/snippets/blade.json https://raw.githubusercontent.com/onecentlin/laravel-blade-snippets-vscode/master/snippets/blade.json",
"snippets:helper": "curl -o data/snippets/helpers.json https://raw.githubusercontent.com/onecentlin/laravel-blade-snippets-vscode/master/snippets/helpers.json",
"snippets:livewire": "curl -o data/snippets/livewire.json https://raw.githubusercontent.com/onecentlin/laravel-blade-snippets-vscode/master/snippets/livewire.json",
"snippets:snippets": "curl -o data/snippets/snippets.json https://raw.githubusercontent.com/onecentlin/laravel-blade-snippets-vscode/master/snippets/snippets.json",
"generate": "node scripts/snippetsToCompletionJson.js && yarn data:format",
"data:format": "prettier --write data/snippets/*.json && prettier --write data/completion/*.json",
"lint": "eslint src --ext ts",
"typecheck": "tsc --noEmit",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"build": "node esbuild.js",
"prepare": "node esbuild.js",
"test": "vitest run src/__tests__",
"test:watch": "vitest src/__tests__"
},
"prettier": {
"singleQuote": true,
"printWidth": 120,
"semi": true
},
"devDependencies": {
"@types/node": "^18.18.4",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"coc.nvim": "^0.0.82",
"esbuild": "^0.16.17",
"eslint": "^8.47.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.8",
"rimraf": "^5.0.1",
"typescript": "^5.1.6",
"vitest": "^0.23.2"
},
"activationEvents": [
"onLanguage:blade"
],
"contributes": {
"rootPatterns": [
{
"filetype": "blade",
"patterns": [
".bladeformatterrc.json",
".bladeformatterrc",
".bladeignore",
"composer.json"
]
}
],
"jsonValidation": [
{
"fileMatch": ".bladeformatterrc.json",
"url": "./schemas/bladeformatterrc.schema.json"
},
{
"fileMatch": ".bladeformatterrc",
"url": "./schemas/bladeformatterrc.schema.json"
}
],
"configuration": {
"type": "object",
"title": "coc-blade configuration",
"properties": {
"blade.enable": {
"type": "boolean",
"default": true,
"description": "Enable coc-blade extension"
},
"blade.completion.enable": {
"type": "boolean",
"default": true,
"description": "Enable completion feature"
},
"blade.completion.enableSnippets": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable snippets completion"
},
"blade.completion.excludeSnippets": {
"type": "array",
"default": [],
"description": "Exclude specific prefix in snippet completion"
},
"blade.completion.enableDirective": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable directive completion"
},
"blade.bladeFormatter.enable": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable/Disable the formatting feature by blade-formatter"
},
"blade.bladeFormatter.optIndentSize": {
"type": [
null,
"integer"
],
"default": null,
"markdownDescription": "Indent size"
},
"blade.bladeFormatter.optWrapLineLength": {
"type": [
null,
"integer"
],
"default": null,
"markdownDescription": "The length of line wrap size"
},
"blade.bladeFormatter.optWrapAttributes": {
"type": [
null,
"string"
],
"default": null,
"enum": [
"auto",
"force",
"force-aligned",
"force-expand-multiline",
"aligned-multiple",
"preserve",
"preserve-aligned"
],
"markdownDescription": "The way to wrap attributes"
},
"blade.bladeFormatter.optEndWithNewLine": {
"type": [
"boolean"
],
"default": true,
"markdownDescription": "End output with newline"
},
"blade.bladeFormatter.optEndOfLine": {
"type": [
null,
"string"
],
"default": null,
"enum": [
"LF",
"CRLF"
],
"markdownDescription": "End of line character(s)."
},
"blade.bladeFormatter.optUseTabs": {
"type": [
"boolean"
],
"default": false,
"markdownDescription": "Use tab as indentation character"
},
"blade.bladeFormatter.optSortTailwindcssClasses": {
"type": [
null,
"boolean"
],
"default": false,
"markdownDescription": "Sort Tailwindcss classes automatically. This option respects `tailwind.config.js` and sort classes according to settings"
},
"blade.bladeFormatter.optSortHtmlAttributes": {
"type": [
"string"
],
"default": "none",
"enum": [
"none",
"alphabetical",
"code-guide",
"idiomatic",
"vuejs",
"custom"
],
"markdownDescription": "Sort HTML Attributes in the specified order"
},
"blade.bladeFormatter.optCustomHtmlAttributesOrder": {
"type": [
null,
"string",
"array"
],
"default": null,
"description": "Comma separated custom HTML attributes order. To enable this you must specify sort html attributes option as `custom`. You can use regex for attribute names"
},
"blade.bladeFormatter.optNoMultipleEmptyLines": {
"type": [
"boolean"
],
"default": false,
"markdownDescription": "Collapses multiple blank lines into a single blank line"
},
"blade.bladeFormatter.optNoPhpSyntaxCheck": {
"type": "boolean",
"default": false,
"markdownDescription": "Disable PHP syntax check. Enabling this will suppress PHP syntax error reporting"
},
"blade.bladeFormatter.optNoSingleQuote": {
"type": "boolean",
"default": false,
"markdownDescription": "Use double quotes instead of single quotes for php expression"
},
"blade.bladeFormatter.optWrapAttributesMinAttrs": {
"type": [
null,
"integer"
],
"default": null,
"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"
},
"blade.bladeFormatter.optIndentInnerHtml": {
"type": "boolean",
"default": false,
"markdownDescription": "Indent `<head>` and `<body>` tag sections in html"
},
"blade.bladeFormatter.optNoTrailingCommaPhp": {
"type": "boolean",
"default": false,
"markdownDescription": "If set to true, no trailing commas are printed for php expression."
},
"blade.bladeFormatter.optExtraLiners": {
"type": "array",
"default": [],
"description": "Comma separated list of tags that should have an extra newline before them"
},
"blade.bladeParserLint.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable the linting feature using stillat-blade-parser"
},
"blade.bladeParserLint.debug": {
"type": "boolean",
"default": false,
"description": "Output the results of the parsing of stillat-blade-parser to the channel log"
},
"blade.bladeParserLint.optCustomIfs": {
"type": "array",
"default": [],
"description": "A list of custom if directives"
},
"blade.bladeParserLint.optDirectives": {
"type": "array",
"default": [],
"description": "A list of directives that can be parsed"
},
"blade.bladeParserLint.optIgnoreDirectives": {
"type": "array",
"default": [],
"description": "A list of directive names that should be ignored"
},
"blade.bladeLinter.enable": {
"type": "boolean",
"default": true,
"description": "Enable/Disable the linting feature by laravel-blade-linter"
}
}
},
"commands": [
{
"command": "blade.showOutput",
"title": "Show blade output channel"
},
{
"command": "blade.bladeFormatter.run",
"title": "Run bladeFormatter.run"
},
{
"command": "blade.showReferences",
"title": "Show BladeDirective (`@...`) or BladeEcho (`{{ ... }}`, `{!! ... !!}`) location information for the current file"
}
]
},
"dependencies": {
"blade-formatter": "1.38.6",
"ignore": "^5.2.0",
"stillat-blade-parser": "1.2.0",
"synckit": "^0.6.0"
},
"packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
}