Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multi-line, multi-argument function calls to maintain formatting #614

Open
tommy-mitchell opened this issue Feb 21, 2024 · 0 comments

Comments

@tommy-mitchell
Copy link

tommy-mitchell commented Feb 21, 2024

Arguments to function calls can currently either be single-line, or indented multi-line. A new maintain option would be helpful.

Input Code

In meow, we have this convention:

const cli = meow(`
	Usage
	  $ foo <input>
`, {
	importMeta: import.meta,
});

Expected Output

const cli = meow(`
	Usage
	  $ foo <input>
`, {
	importMeta: import.meta,
});

Actual Output

const cli = meow(
	`
	Usage
	  $ foo <input>
`,
	{
		importMeta: import.meta,
	},
);

Related: #401, #532 (asking for the opposite)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant