dprint / dprint-plugin-typescript

TypeScript and JavaScript code formatting plugin for dprint.
https://dprint.dev/plugins/typescript
MIT License
258 stars 57 forks source link

Do not move assignment value on new line if `variable_statement_prefer_single_line` is `true` #668

Open MrFoxPro opened 2 months ago

MrFoxPro commented 2 months ago

Before

let str = 
    "relative m-t-auto mb8 h12 wfull font-bold c-white rounded-43px border-style-none bg-blue-450 shrink-0 dark:disabled:(bg-blue-900! c-blue-700) light:disabled:(bg-blue-100! c-blue-000) active:bg-blue-450/80 cursor-pointer"

After

let str = "relative m-t-auto mb8 h12 wfull font-bold c-white rounded-43px border-style-none bg-blue-450 shrink-0 dark:disabled:(bg-blue-900! c-blue-700) light:disabled:(bg-blue-100! c-blue-000) active:bg-blue-450/80 cursor-pointer"
CLAassistant commented 2 months ago

CLA assistant check
All committers have signed the CLA.