prettier-plugin-multiline-arrays icon indicating copy to clipboard operation
prettier-plugin-multiline-arrays copied to clipboard

Prettier plugin to force array elements to wrap onto new lines.

Results 14 prettier-plugin-multiline-arrays issues
Sort by recently updated
recently updated
newest added

This plugin seems not compatible with https://github.com/tailwindlabs/prettier-plugin-tailwindcss

bug

```typescript function myFunction([{firstInput}]: [{firstInput: string}]): string { return `hi ${firstInput}`; } ``` results in: > Error: Found "[" but: not at index 0 in its parent > at node_modules/prettier-plugin-multiline-arrays/dist/printer/insert-new-lines.js:39

bug

example: this isn't getting force wrapped: ```typescript type MyType = [number, string]; ```

bug

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...

enhancement
help wanted
question

Scene1: one dimension array: ```javascript // now // prettier-multiline-arrays-next-line-pattern: 2 const array2 = [ 'apple', 'meta', 'microsoft', 'google', 'apple', 'meta', 'microsoft', 'google', ]; // expect every column should align left...

enhancement
help wanted

@electrovir is it compatible? it appears not: https://github.com/electrovir/prettier-plugin-multiline-arrays/blob/main/src/index.ts#L21 Can it be made compatible?

enhancement
help wanted

Is it going to support function parameters and arguments? ```js function greet( param0, param1, param2, ) {} greet( 'arg 0', 'arg 1', 'arg 2', ); ``` _Originally posted by @monim67...

enhancement

I am using prettier_action in GitHub Actions and the prettier-plugin-multiline-arrays plugin, but I encountered an error when running it. The error is shown below. ![1721295068734](https://github.com/user-attachments/assets/48dc98c9-20ff-4e73-875e-ab644f588b75) My config as blow: `jobs:...

bug

Hello, I've been searching the internet for a prettier plugin that is able to do something very similar to what this plugin does (multiline). In the package [tailwind styled component](https://github.com/MathiasGilson/tailwind-styled-component),...

When there are nested arrays — plugin want additional empty line (when disable plugin all ok) "prettier": "3.3.3", "prettier-plugin-multiline-arrays": "3.0.6",