electrovir / prettier-plugin-multiline-arrays

Prettier plugin to force array elements to wrap onto new lines.
https://www.npmjs.com/package/prettier-plugin-multiline-arrays
Creative Commons Zero v1.0 Universal
135 stars 6 forks source link

Is there anything like this for imports and object destructuring? #22

Open ghost opened 1 year ago

ghost commented 1 year ago

I wish Prettier would just keep my line breaks for destructures and import statements.

Does anyone know if there's a plugin that does that?

Alternatively, could this plugin be modified to do it?

Thanks!

electrovir commented 1 year ago

I wish Prettier would just keep my line breaks for destructures and import statements.

I totally agree

Does anyone know if there's a plugin that does that?

Not that I know of

could this plugin be modified to do it?

Probably not the most in scope for this plugin, but if someone wants to build it in I'd review the code.