|
261 | 261 | "type": "boolean", |
262 | 262 | "default": true, |
263 | 263 | "title": "Svelte: Format", |
264 | | - "description": "Enable formatting for Svelte (includes css & js)" |
| 264 | + "description": "Enable formatting for Svelte (includes css & js). You can set some formatting options through this extension. They will be ignored if there's a `.prettierrc` configuration file." |
| 265 | + }, |
| 266 | + "svelte.plugin.svelte.format.config.svelteSortOrder": { |
| 267 | + "type": "string", |
| 268 | + "default": "options-scripts-markup-styles", |
| 269 | + "title": "Svelte Format: Sort Order", |
| 270 | + "description": "Format: join the keys `options`, `scripts`, `markup`, `styles` with a - in the order you want" |
| 271 | + }, |
| 272 | + "svelte.plugin.svelte.format.config.svelteStrictMode": { |
| 273 | + "type": "boolean", |
| 274 | + "default": false, |
| 275 | + "title": "Svelte Format: Strict Mode", |
| 276 | + "description": "More strict HTML syntax" |
| 277 | + }, |
| 278 | + "svelte.plugin.svelte.format.config.svelteAllowShorthand": { |
| 279 | + "type": "boolean", |
| 280 | + "default": true, |
| 281 | + "title": "Svelte Format: Allow Shorthand", |
| 282 | + "description": "Option to enable/disable component attribute shorthand if attribute name and expression are the same" |
| 283 | + }, |
| 284 | + "svelte.plugin.svelte.format.config.svelteBracketNewLine": { |
| 285 | + "type": "boolean", |
| 286 | + "default": true, |
| 287 | + "title": "Svelte Format: Bracket New Line", |
| 288 | + "description": "Put the `>` of a multiline element on a new line" |
| 289 | + }, |
| 290 | + "svelte.plugin.svelte.format.config.svelteIndentScriptAndStyle": { |
| 291 | + "type": "boolean", |
| 292 | + "default": true, |
| 293 | + "title": "Svelte Format: Indent Script And Style", |
| 294 | + "description": "Whether or not to indent code inside `<script>` and `<style>` tags" |
| 295 | + }, |
| 296 | + "svelte.plugin.svelte.format.config.printWidth": { |
| 297 | + "type": "number", |
| 298 | + "default": 80, |
| 299 | + "title": "Svelte Format: Print Width", |
| 300 | + "description": "Maximum line width after which code is tried to be broken up. This is a Prettier core option. If you have the Prettier extension installed, this option is ignored and the corresponding option of that extension is used instead." |
| 301 | + }, |
| 302 | + "svelte.plugin.svelte.format.config.singleQuote": { |
| 303 | + "type": "boolean", |
| 304 | + "default": false, |
| 305 | + "title": "Svelte Format: Quotes", |
| 306 | + "description": "Use single quotes instead of double quotes, where possible. This is a Prettier core option. If you have the Prettier extension installed, this option is ignored and the corresponding option of that extension is used instead." |
265 | 307 | }, |
266 | 308 | "svelte.plugin.svelte.completions.enable": { |
267 | 309 | "type": "boolean", |
|
0 commit comments