shufo / blade-formatter

An opinionated blade template formatter for Laravel that respects readability
https://www.npmjs.com/package/blade-formatter
MIT License
456 stars 25 forks source link

feat: add option `--wrap-attributes-min-attrs` #836

Closed shufo closed 1 year ago

shufo commented 1 year ago

Description

This PR adds option --wrap-attributes-min-attrs

Motivation and Context

js-beautify adds option --wrap-attributes-min-attrs in recent version.

How Has This Been Tested?

see tests

codecov[bot] commented 1 year ago

Codecov Report

Patch and project coverage have no change.

Comparison is base (bc1775e) 78.62% compared to head (cbaed8d) 78.62%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #836 +/- ## ======================================= Coverage 78.62% 78.62% ======================================= Files 16 16 Lines 1726 1726 Branches 402 402 ======================================= Hits 1357 1357 Misses 358 358 Partials 11 11 ``` | [Impacted Files](https://app.codecov.io/gh/shufo/blade-formatter/pull/836?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Shuhei+Hayashibara) | Coverage Δ | | |---|---|---| | [src/formatter.ts](https://app.codecov.io/gh/shufo/blade-formatter/pull/836?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Shuhei+Hayashibara#diff-c3JjL2Zvcm1hdHRlci50cw==) | `89.73% <ø> (ø)` | | | [src/main.ts](https://app.codecov.io/gh/shufo/blade-formatter/pull/836?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Shuhei+Hayashibara#diff-c3JjL21haW4udHM=) | `31.36% <ø> (ø)` | | | [src/runtimeConfig.ts](https://app.codecov.io/gh/shufo/blade-formatter/pull/836?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Shuhei+Hayashibara#diff-c3JjL3J1bnRpbWVDb25maWcudHM=) | `57.14% <ø> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.