-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
360 lines (360 loc) · 11.6 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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
{
"name": "djlint",
"displayName": "djLint",
"version": "2024.10.0",
"description": "HTML template formatter and linter (Django, Jinja, Nunjucks, Twig, Handlebars, Mustache)",
"categories": [
"Formatters",
"Linters"
],
"homepage": "https://github.com/djlint/djlint-vscode",
"bugs": {
"url": "https://github.com/djlint/djlint-vscode/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/djlint/djlint-vscode"
},
"license": "MIT",
"publisher": "monosans",
"type": "module",
"main": "./dist/extension.cjs",
"scripts": {
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.cjs --external:vscode --format=cjs --platform=node --target=node20.9",
"format": "prettier --write .",
"lint": "eslint --max-warnings 0 . && tsc",
"vscode:prepublish": "node ./build/minify-package-json.mjs && npm run esbuild-base -- --minify",
"watch:esbuild": "npm run esbuild-base -- --sourcemap --watch",
"watch:tsc": "tsc --watch"
},
"contributes": {
"configuration": {
"properties": {
"djlint.blankLineAfterTag": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Add an additional blank line after {% <tag> ... %} tag groups. Requires djLint ≥ 1.25."
},
"djlint.blankLineBeforeTag": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Add an additional blank line before {% <tag> ... %} tag groups. Requires djLint ≥ 1.25."
},
"djlint.closeVoidTags": {
"type": "boolean",
"default": false,
"description": "Add closing mark on known void tags. Ex: <img> becomse <img />. Requires djLint ≥ 1.26."
},
"djlint.configuration": {
"type": "string",
"default": "",
"description": "Path to the configuration file. The path can be relative to the workspace root. Requires djLint ≥ 1.13 for .djlintrc format and ≥ 1.34 for TOML."
},
"djlint.customBlocks": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Indent custom template blocks. Requires djLint ≥ 1.25."
},
"djlint.customHtml": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Indent custom HTML tags. Requires djLint ≥ 1.25."
},
"djlint.enableLinting": {
"type": "boolean",
"default": false,
"scope": "language-overridable",
"description": "Lint for common issues."
},
"djlint.exclude": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Override the default exclude paths. Requires djLint ≥ 1.25."
},
"djlint.extendExclude": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Add additional paths to the default exclude. Requires djLint ≥ 1.25."
},
"djlint.formatAttributeTemplateTags": {
"type": "boolean",
"default": false,
"description": "Attempt to format template syntax inside of tag attributes. Requires djLint ≥ 1.25."
},
"djlint.formatCss": {
"type": "boolean",
"default": false,
"description": "Also format contents of <style> tags. Requires djLint ≥ 1.9."
},
"djlint.formatLanguages": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"django-html",
"jinja",
"jinja-html",
"nj",
"njk",
"nunjucks",
"twig",
"handlebars",
"hbs",
"mustache",
"html"
],
"description": "Language IDs for which djLint should be registered as a formatter."
},
"djlint.formatJs": {
"type": "boolean",
"default": false,
"description": "Also format contents of <script> tags. Requires djLint ≥ 1.9."
},
"djlint.ignore": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Codes to ignore. Requires djLint ≥ 0.1.5."
},
"djlint.ignoreBlocks": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Template blocks to not indent. Requires djLint ≥ 1.24."
},
"djlint.ignoreCase": {
"type": "boolean",
"default": false,
"description": "Do not fix case on known html tags. Requires djLint ≥ 1.23."
},
"djlint.include": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Codes to include. Requires djLint ≥ 1.20."
},
"djlint.indentCss": {
"type": [
"integer",
null
],
"default": null,
"description": "CSS indent level. Requires djLint ≥ 1.25."
},
"djlint.indentJs": {
"type": [
"integer",
null
],
"default": null,
"description": "JS indent level. Requires djLint ≥ 1.25."
},
"djlint.lineBreakAfterMultilineTag": {
"type": "boolean",
"default": false,
"description": "Do not condense the content of multi-line tags into the line of the last attribute. Requires djLint ≥ 1.27."
},
"djlint.maxAttributeLength": {
"type": [
"integer",
null
],
"default": null,
"description": "Max attribute length. Requires djLint ≥ 1.25."
},
"djlint.maxBlankLines": {
"type": [
"integer",
null
],
"default": null,
"description": "Consolidate blank lines down to x lines. Requires djLint ≥ 1.31."
},
"djlint.maxLineLength": {
"type": [
"integer",
null
],
"default": null,
"description": "Max line length. Requires djLint ≥ 1.25."
},
"djlint.noFunctionFormatting": {
"type": "boolean",
"default": false,
"description": "Do not attempt to format function contents. Requires djLint ≥ 1.30.2."
},
"djlint.noLineAfterYaml": {
"type": "boolean",
"default": false,
"description": "Do not add a blank line after yaml front matter. Requires djLint ≥ 1.29."
},
"djlint.noSetFormatting": {
"type": "boolean",
"default": false,
"description": "Do not attempt to format set contents. Requires djLint ≥ 1.30.2."
},
"djlint.preserveBlankLines": {
"type": "boolean",
"default": false,
"description": "Preserve blank lines. Requires djLint ≥ 1.3."
},
"djlint.preserveLeadingSpace": {
"type": "boolean",
"default": false,
"description": "Preserve leading space. Requires djLint ≥ 1.2."
},
"djlint.profile": {
"type": "string",
"enum": [
"",
"django",
"jinja",
"nunjucks",
"handlebars",
"golang",
"angular",
"html"
],
"default": "",
"scope": "language-overridable",
"description": "Enable defaults by template language. Requires djLint ≥ 0.4.5."
},
"djlint.pythonPath": {
"type": "string",
"minLength": 1,
"default": "python",
"description": "Path to the desired Python interpreter. Only used if djlint.useVenv is disabled or the Python extension is not installed."
},
"djlint.requirePragma": {
"type": "boolean",
"default": false,
"description": "Only format or lint files that start with a comment with the text 'djlint:on'. Requires djLint ≥ 0.5.8."
},
"djlint.showInstallError": {
"type": "boolean",
"default": true,
"description": "Show error message when djLint is not installed."
},
"djlint.useEditorIndentation": {
"type": "boolean",
"default": true,
"description": "Get the number of indent spaces from VS Code (see the editor.tabSize setting). Disable to get it from the djLint config file. Requires djLint ≥ 0.4.3."
},
"djlint.useGitignore": {
"type": "boolean",
"default": false,
"description": "Use .gitignore file to extend excludes. Requires djLint ≥ 0.5.9."
},
"djlint.useNewLinterOutputParser": {
"type": "boolean",
"default": true,
"description": "Use a new, more reliable linter output parser. If you disable this setting, make sure that you have not changed the linter_output_format setting in the djLint configuration file. Requires djLint ≥ 1.25."
},
"djlint.useVenv": {
"type": "boolean",
"default": true,
"description": "Use the Python executable from the current active environment. The Python extension must be installed, if it is not installed, the djlint.pythonPath setting will be used."
}
}
},
"configurationDefaults": {
"[django-html]": {
"djlint.enableLinting": true,
"djlint.profile": "django"
},
"[jinja]": {
"djlint.enableLinting": true,
"djlint.profile": "jinja"
},
"[jinja-html]": {
"djlint.enableLinting": true,
"djlint.profile": "jinja"
},
"[nj]": {
"djlint.enableLinting": true,
"djlint.profile": "nunjucks"
},
"[njk]": {
"djlint.enableLinting": true,
"djlint.profile": "nunjucks"
},
"[nunjucks]": {
"djlint.enableLinting": true,
"djlint.profile": "nunjucks"
},
"[twig]": {
"djlint.enableLinting": true,
"djlint.profile": "nunjucks"
},
"[handlebars]": {
"djlint.enableLinting": true,
"djlint.profile": "handlebars"
},
"[hbs]": {
"djlint.enableLinting": true,
"djlint.profile": "handlebars"
},
"[mustache]": {
"djlint.enableLinting": true,
"djlint.profile": "handlebars"
},
"[html]": {
"djlint.enableLinting": true
}
}
},
"activationEvents": [
"onStartupFinished"
],
"dependencies": {
"@vscode/python-extension": "1.0.5",
"execa": "9.5.2"
},
"devDependencies": {
"@eslint/js": "9.17.0",
"@ianvs/prettier-plugin-sort-imports": "4.4.0",
"@total-typescript/ts-reset": "0.6.1",
"@tsconfig/strictest": "2.0.5",
"@types/eslint-config-prettier": "6.11.3",
"@types/eslint__js": "8.42.3",
"@types/node": "20.17.12",
"@types/vscode": "1.90.0",
"esbuild": "0.24.2",
"eslint": "9.17.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-unicorn": "56.0.1",
"prettier": "3.4.2",
"prettier-plugin-packagejson": "2.5.6",
"typescript": "5.7.3",
"typescript-eslint": "8.19.1"
},
"engines": {
"vscode": "^1.90.0"
},
"icon": "icon.png"
}