prettier-plugin-multiline-arrays
prettier-plugin-multiline-arrays copied to clipboard
Prettier plugin to force array elements to wrap onto new lines.
This plugin seems not compatible with https://github.com/tailwindlabs/prettier-plugin-tailwindcss
```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
example: this isn't getting force wrapped: ```typescript type MyType = [number, string]; ```
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...
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...
@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?
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...
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.  My config as blow: `jobs:...
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",