mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
f7acdc0bd9
Fixes #20181
35 KiB
35 KiB
js-in-vue
Option 1: 423/426 (99.30%)
{"printWidth":80}
| File | Note |
|---|---|
| edge-cases/js-in-vue/generic-trailing-comma.vue | <T = any,> comma removed like plain .ts. See apps/oxfmt/DIVERGENCES.md#ts-in-vue-generic-trailing-comma |
| externals/vue-vben-admin/@core/ui-kit/shadcn-ui/src/components/render-content/render-content.vue | union out of its :/as position expands to leading-` |
| externals/vue-vben-admin/effects/common-ui/src/components/api-component/api-component.vue | <T = any,> comma removed like plain .ts. See apps/oxfmt/DIVERGENCES.md#ts-in-vue-generic-trailing-commaunion out of its :/as position expands to leading-` |
Option 2: 424/426 (99.53%)
{"printWidth":100,"vueIndentScriptAndStyle":true,"singleQuote":true}
| File | Note |
|---|---|
| edge-cases/js-in-vue/generic-trailing-comma.vue | <T = any,> comma removed like plain .ts. See apps/oxfmt/DIVERGENCES.md#ts-in-vue-generic-trailing-comma |
| externals/vue-vben-admin/effects/common-ui/src/components/api-component/api-component.vue | <T = any,> comma removed like plain .ts. See apps/oxfmt/DIVERGENCES.md#ts-in-vue-generic-trailing-commaunion out of its :/as position expands to leading-` |
gql-in-js
Option 1: 11/12 (91.67%)
{"printWidth":80}
| File | Note |
|---|---|
| edge-cases/gql-in-js/template-expression-indent.js | embedded ${expr} re-indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#template-expression-indent |
Option 2: 11/12 (91.67%)
{"printWidth":100}
| File | Note |
|---|---|
| edge-cases/gql-in-js/template-expression-indent.js | embedded ${expr} re-indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#template-expression-indent |
css-in-js
Option 1: 18/21 (85.71%)
{"printWidth":80}
| File | Note |
|---|---|
| edge-cases/css-in-js/styled-extend-tag.js | Xxx.extend not recognized as tag. See apps/oxfmt/DIVERGENCES.md#styled-extend-tag |
| edge-cases/css-in-js/template-expression-indent.js | embedded ${expr} re-indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#template-expression-indent |
| externals/prettier/js/multiparser-css/styled-components.js | Xxx.extend not recognized as tag. See apps/oxfmt/DIVERGENCES.md#styled-extend-tag |
Option 2: 18/21 (85.71%)
{"printWidth":100}
| File | Note |
|---|---|
| edge-cases/css-in-js/styled-extend-tag.js | Xxx.extend not recognized as tag. See apps/oxfmt/DIVERGENCES.md#styled-extend-tag |
| edge-cases/css-in-js/template-expression-indent.js | embedded ${expr} re-indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#template-expression-indent |
| externals/prettier/js/multiparser-css/styled-components.js | Xxx.extend not recognized as tag. See apps/oxfmt/DIVERGENCES.md#styled-extend-tag |
html-in-js
Option 1: 168/194 (86.60%)
{"printWidth":80}
| File | Note |
|---|---|
| edge-cases/html-in-js/template-expression-indent.js | embedded ${expr} re-indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#template-expression-indent |
| externals/webawesome/badge/badge.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/button/button.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/callout/callout.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/carousel/carousel.ts | embedded ${expr} re-indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#template-expression-indent |
| externals/webawesome/checkbox/checkbox.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/color-picker/color-picker.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/copy-button/copy-button.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/details/details.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/dropdown-item/dropdown-item.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/dropdown/dropdown.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/format-number/format-number.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/input/input.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/number-input/number-input.styles.ts | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
| externals/webawesome/number-input/number-input.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/page/page.styles.ts | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
| externals/webawesome/popup/popup.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/qr-code/qr-code.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/radio-group/radio-group.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/radio/radio.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/rating/rating.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/select/select.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/slider/slider.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/switch/switch.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/tag/tag.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/textarea/textarea.ts | union out of its :/as position expands to leading-` |
Option 2: 181/194 (93.30%)
{"printWidth":100,"htmlWhitespaceSensitivity":"ignore"}
| File | Note |
|---|---|
| edge-cases/html-in-js/template-expression-indent.js | embedded ${expr} re-indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#template-expression-indent |
| externals/webawesome/button/button.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/callout/callout.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/carousel/carousel.ts | embedded ${expr} re-indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#template-expression-indent |
| externals/webawesome/color-picker/color-picker.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/copy-button/copy-button.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/format-number/format-number.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/icon/icon.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/input/input.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/page/page.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/popup/popup.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/slider/slider.ts | union out of its :/as position expands to leading-` |
| externals/webawesome/textarea/textarea.ts | union out of its :/as position expands to leading-` |
angular-in-js
Option 1: 7/7 (100.00%)
{"printWidth":80}
Option 2: 7/7 (100.00%)
{"printWidth":100,"htmlWhitespaceSensitivity":"ignore"}
md-in-js
Option 1: 8/8 (100.00%)
{"printWidth":80}
Option 2: 8/8 (100.00%)
{"printWidth":100,"proseWrap":"always"}
xxx-in-js-comment
Option 1: 4/6 (66.67%)
{"printWidth":80}
| File | Note |
|---|---|
| edge-cases/xxx-in-js-comment/broken-template-comment-indent.js | broken ${} holding comments indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#broken-template-comment-indent |
| externals/prettier/js/multiparser-comments/comment-inside.js | broken ${} holding comments indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#broken-template-comment-indent |
Option 2: 4/6 (66.67%)
{"printWidth":100}
| File | Note |
|---|---|
| edge-cases/xxx-in-js-comment/broken-template-comment-indent.js | broken ${} holding comments indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#broken-template-comment-indent |
| externals/prettier/js/multiparser-comments/comment-inside.js | broken ${} holding comments indents to the placeholder. See apps/oxfmt/DIVERGENCES.md#broken-template-comment-indent |
svelte
Option 1: 79/79 (100.00%)
{"printWidth":80,"svelte":{}}
Option 2: 79/79 (100.00%)
{"printWidth":120,"singleQuote":true,"htmlWhitespaceSensitivity":"ignore","bracketSameLine":true,"svelteIndentScriptAndStyle":true,"svelteSortOrder":"options-scripts-styles-markup","svelte":{"indentScriptAndStyle":true,"sortOrder":"options-scripts-styles-markup"}}
graphql
Option 1: 712/712 (100.00%)
{"printWidth":80}
Option 2: 712/712 (100.00%)
{"printWidth":100}
less
Option 1: 403/409 (98.53%)
{"printWidth":80}
| File | Note |
|---|---|
| externals/ng-zorro-antd/components/style/themes/compact.less | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
| externals/ng-zorro-antd/components/style/themes/dark.less | trailing // comment never counts toward print width. See crates/oxc_formatter_css/DIVERGENCES.md#trailing-line-comment-print-width |
| externals/ng-zorro-antd/components/style/themes/default.less | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position trailing // comment never counts toward print width. See crates/oxc_formatter_css/DIVERGENCES.md#trailing-line-comment-print-width |
| externals/ng-zorro-antd/components/style/themes/variable.less | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position trailing // comment never counts toward print width. See crates/oxc_formatter_css/DIVERGENCES.md#trailing-line-comment-print-width |
| externals/ng-zorro-antd/components/table/style/index.less | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
| externals/ng-zorro-antd/components/table/style/rtl.less | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
Option 2: 406/409 (99.27%)
{"printWidth":100}
| File | Note |
|---|---|
| externals/ng-zorro-antd/components/style/themes/default.less | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position trailing // comment never counts toward print width. See crates/oxc_formatter_css/DIVERGENCES.md#trailing-line-comment-print-width |
| externals/ng-zorro-antd/components/style/themes/variable.less | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position trailing // comment never counts toward print width. See crates/oxc_formatter_css/DIVERGENCES.md#trailing-line-comment-print-width |
| externals/ng-zorro-antd/components/table/style/rtl.less | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
css
Option 1: 221/221 (100.00%)
{"printWidth":80}
Option 2: 221/221 (100.00%)
{"printWidth":100}
yaml
Option 1: 295/302 (97.68%)
{"printWidth":80}
| File | Note |
|---|---|
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELB_Access_Logs_And_Connection_Draining.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELBGuidedAutoScalingRollingUpgrade.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELBStickinessSample.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELBWithLockedDownAutoScaledInstances.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/RainModules/bucket.yml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/RainModules/load-balancer.yml | over-indented comment after key: value never rewrites the pair. See crates/oxc_formatter_yaml/DIVERGENCES.md#comment-over-indented |
| externals/aws-cloudformation-templates/Solutions/OperatingSystems/ubuntu20.04_cfn-hup.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
Option 2: 295/302 (97.68%)
{"printWidth":100,"tabWidth":4,"proseWrap":"always"}
| File | Note |
|---|---|
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELB_Access_Logs_And_Connection_Draining.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELBGuidedAutoScalingRollingUpgrade.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELBStickinessSample.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELBWithLockedDownAutoScaledInstances.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/RainModules/bucket.yml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/RainModules/load-balancer.yml | over-indented comment after key: value never rewrites the pair. See crates/oxc_formatter_yaml/DIVERGENCES.md#comment-over-indented |
| externals/aws-cloudformation-templates/Solutions/OperatingSystems/ubuntu20.04_cfn-hup.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
Option 3: 295/302 (97.68%)
{"printWidth":120,"singleQuote":true,"bracketSpacing":false,"trailingComma":"none"}
| File | Note |
|---|---|
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELB_Access_Logs_And_Connection_Draining.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELBGuidedAutoScalingRollingUpgrade.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELBStickinessSample.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/ElasticLoadBalancing/ELBWithLockedDownAutoScaledInstances.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/RainModules/bucket.yml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
| externals/aws-cloudformation-templates/RainModules/load-balancer.yml | over-indented comment after key: value never rewrites the pair. See crates/oxc_formatter_yaml/DIVERGENCES.md#comment-over-indented |
| externals/aws-cloudformation-templates/Solutions/OperatingSystems/ubuntu20.04_cfn-hup.yaml | block scalar trailing whitespace is part of the value. See crates/oxc_formatter_yaml/DIVERGENCES.md#block-scalar-trailing-whitespace |
scss
Option 1: 203/217 (93.55%)
{"printWidth":80}
| File | Note |
|---|---|
| externals/gitlab/stylesheets/components/content_editor.scss | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
| externals/gitlab/stylesheets/framework/diffs.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/framework/variables_overrides.scss | no trailing comma into non-comma-list map-item parens. See crates/oxc_formatter_css/DIVERGENCES.md#map-item-break-comma-lists-only |
| externals/gitlab/stylesheets/highlight/conflict_colors.scss | blank lines in maps with paren values are preserved. See crates/oxc_formatter_css/DIVERGENCES.md#map-paren-value-blank-lines |
| externals/gitlab/stylesheets/page_bundles/_ide_theme_overrides.scss | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
| externals/gitlab/stylesheets/page_bundles/editor.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/environments.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/issuable_list.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/labels.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/merge_requests.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/projects.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/settings.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/pages/profile.scss | trailing // comment never counts toward print width. See crates/oxc_formatter_css/DIVERGENCES.md#trailing-line-comment-print-width |
| externals/gitlab/stylesheets/pages/settings.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
Option 2: 204/217 (94.01%)
{"printWidth":100}
| File | Note |
|---|---|
| externals/gitlab/stylesheets/framework/diffs.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/framework/sidebar.scss | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
| externals/gitlab/stylesheets/framework/variables_overrides.scss | no trailing comma into non-comma-list map-item parens. See crates/oxc_formatter_css/DIVERGENCES.md#map-item-break-comma-lists-only |
| externals/gitlab/stylesheets/highlight/conflict_colors.scss | blank lines in maps with paren values are preserved. See crates/oxc_formatter_css/DIVERGENCES.md#map-paren-value-blank-lines |
| externals/gitlab/stylesheets/page_bundles/_ide_theme_overrides.scss | fill break position (Prettier breaks inside the wide chunk, ours at the separator). See crates/oxc_formatter_css/DIVERGENCES.md#fill-break-position |
| externals/gitlab/stylesheets/page_bundles/editor.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/environments.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/issuable_list.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/labels.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/merge_requests.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/projects.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/page_bundles/settings.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
| externals/gitlab/stylesheets/pages/settings.scss | media-query operator spacing. See crates/oxc_formatter_css/DIVERGENCES.md#media-query-operator-spacing |
jsdoc
Option 1: 368/370 (99.46%)
{"printWidth":100}
| File | Note |
|---|---|
| externals/svelte/compiler/print/index.js | TODO: if (!(a && b)) hugs !( to the head paren since prettier/prettier#18401, not ported yet (conformance js/if/condition-break/unary-expression.js). Unrelated to JSDoc |
| externals/svelte/internal/client/dom/css.js | cast comment prints inside the formatter-added parens. See crates/oxc_formatter/DIVERGENCES.md#cast-comment-inside-added-parens |