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

Beautify HTML (wrap-attributes after certain number) #1758

Open
rafaelmaiach opened this issue Feb 15, 2020 · 1 comment
Open

Beautify HTML (wrap-attributes after certain number) #1758

rafaelmaiach opened this issue Feb 15, 2020 · 1 comment

Comments

@rafaelmaiach
Copy link

rafaelmaiach commented Feb 15, 2020

Hi, I'm using js-beautify inside Vetur as shown below.
I'd like to know if it's possible to tell the JS-Beautify to only expand to multiline if I have more than N attributes. This would be nice to sync with ESLint rule that allows a maximum of 3 attributes before break to multilines

"vetur.format.defaultFormatterOptions": {
	"prettier": {
		"semi": true,
		"singleQuote": true,
		"trailingComma": "all",
		"tabWidth": 2,
	},
	"js-beautify-html": {
		"wrap_attributes": "force-expand-multiline"
	}
},
@bitwiseman bitwiseman changed the title Beautify HTML (wrap-attributes) Beautify HTML (wrap-attributes after certain number) Feb 25, 2020
@bitwiseman
Copy link
Member

Not at this time.

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

No branches or pull requests

2 participants