prettier rules in Sudsy
HTMLJavaScript / TypeScriptCSS / SCSS / LessJSON / JSONCMarkdownYAMLVue / SvelteGraphQLversion 3.9.10 (npm latest; the options page does not print the version)95% of HTML files identical95% of JavaScript / TypeScript files identical92% of CSS / SCSS / Less files identical99% of JSON / JSONC files identical92% of Markdown files identical94% of YAML files identical91% of Vue / Svelte files identical99% of Angular templates files identical99% of GraphQL files identical38 covered9 partial2 planned7 deferred
Every rule and setting of prettier in the parity catalog, with the Sudsy equivalent. The format share is the part of real-world files that Sudsy formats to the same text as prettier. Where the tool has a page for an entry, the id links to it.
Status: covered; partial (the note says what differs); not yet (planned); deferred; not planned; SDK (a .NET SDK diagnostic does it).
| Id | Sudsy | Status | Note |
|---|---|---|---|
printWidth |
option json.format.line_width |
covered | |
tabWidth |
option json.format.indent_size |
covered | |
useTabs |
option json.format.indent_style |
covered | |
endOfLine |
option json.format.end_of_line |
covered | |
bracketSpacing |
option json.format.bracket_spacing |
covered | |
singleQuote (yaml) |
option yaml.format.quote_style |
covered | |
singleQuote (json) |
- | deferred | no json5 dialect |
quoteProps (json) |
- | deferred | no json5 dialect |
trailingComma |
option json.format.trailing_commas |
partial | Prettier’s json parser never adds commas; whether the jsonc parser adds them under all is unverified (issue 15553 and Zed docs suggest the .jsonc extension can add trailing commas) |
objectWrap |
option json.format.collapse |
covered | |
proseWrap |
- | deferred | docs/ai/roadmap.md (YAML re-wrapping) |
embeddedLanguageFormatting |
option html.format.embedded_language_formatting |
partial | only the code of HTML, Vue and Svelte files; Markdown fences and code in JS templates are formatted as written |
insertPragma / requirePragma / checkIgnorePragma |
- | deferred | no pragma mode |
rangeStart / rangeEnd |
- | deferred | docs/ai/roadmap.md (range formatting) |
htmlWhitespaceSensitivity |
option html.format.whitespace_sensitivity |
covered | |
vueIndentScriptAndStyle |
option vue.format.indent_script_and_style |
covered | |
svelteIndentScriptAndStyle |
option svelte.format.indent_script_and_style |
covered | |
overrides / .prettierignore / .editorconfig |
configuration: overrides, exclude, ignore files, .editorconfig | covered | |
json: package.json / package-lock.json / composer.json |
option json.format.collapse |
covered | |
json: number arrays are filled |
- | not yet | docs/ai/formatting/presets.md: ‘Number arrays not filled, numbers not normalized’ |
json: tolerant parser |
- | not planned | strict parser by design |
json: blank lines kept (max 1) |
formatter | covered | |
json: comments kept |
formatter | covered | |
json: file name routing |
option json.format.dialect |
partial | Sudsy routes .json to strict json and a short list (.jsonc, tsconfig.json, .vscode/*.json) to jsonc; Prettier’s list is longer (unverified which names) |
yaml: comments and blank lines kept |
formatter | covered | |
yaml: sequences under mappings indented |
option yaml.format.sequence_indent |
covered | |
yaml: blank line after key removed |
option yaml.format.blank_lines_after_key |
covered | |
yaml: document marker handling |
option yaml.format.document_start |
partial | Prettier’s rule for a leading --- (kept for directives and comments?) is unverified; preset uses preserve |
yaml: long scalars / flow collections |
formatter | partial | Sudsy does not re-wrap long plain/quoted scalars or comments (known gap); flow collections that do not fit move/break |
yaml: # prettier-ignore |
formatter | covered | |
markdown: formatting at proseWrap=preserve |
formatter | covered | |
graphql: formatting |
formatter | partial | A file the tree-sitter grammar cannot parse is not formatted; Unicode escapes in strings are kept, Prettier decodes them. |
printWidth (js) |
option js.format.line_width |
covered | |
tabWidth (js) |
option js.format.indent_size |
covered | |
useTabs (js) |
option js.format.indent_style |
covered | |
endOfLine (js) |
option js.format.end_of_line |
covered | |
bracketSpacing (js) |
option js.format.bracket_spacing |
covered | |
objectWrap (js) |
- | not yet | js.format.collapse (the first-line break of an object is kept) |
semi |
option js.format.semi |
covered | |
singleQuote (js) |
option js.format.quote_style |
covered | |
jsxSingleQuote |
option js.format.jsx_single_quote |
covered | |
quoteProps (js) |
option js.format.quote_props |
partial | numeric property names are left as written |
trailingComma (js) |
option js.format.trailing_commas |
partial | es5 and none are not applied to TypeScript lists |
arrowParens |
option js.format.arrow_parens |
covered | |
bracketSameLine |
option js.format.bracket_same_line |
covered | |
singleAttributePerLine |
option html.format.single_attribute_per_line |
partial | JSX attributes (js.format.single_attribute_per_line) are planned |
experimentalTernaries, experimentalOperatorPosition |
- | not planned | not planned; Prettier marks them experimental |
js: formatting |
formatter | covered | |
js: // prettier-ignore |
formatter | covered | |
js: embedded CSS/GraphQL/HTML/Markdown in templates |
- | deferred | formatted by those languages’ own formatters later |
js: Flow syntax |
- | deferred | Flow is not supported by the parser; reported as a syntax error |
printWidth (css) |
option css.format.line_width |
covered | |
tabWidth (css) |
option css.format.indent_size |
covered | |
useTabs (css) |
option css.format.indent_style |
covered | |
endOfLine (css) |
option css.format.end_of_line |
covered | |
singleQuote (css) |
option css.format.single_quote |
covered | |
css: formatting (css, scss, less) |
formatter | covered | |
css: /* prettier-ignore */ |
formatter | covered | |
css: Sass indented syntax |
- | not planned | Prettier does not format it either |