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

CSS not indented in <style> block of Vue files #6

Open
qjack001 opened this issue Aug 21, 2021 · 0 comments
Open

CSS not indented in <style> block of Vue files #6

qjack001 opened this issue Aug 21, 2021 · 0 comments
Labels
modification A rule should be changed

Comments

@qjack001
Copy link
Member

qjack001 commented Aug 21, 2021

What it currently does

Currently, unindented CSS does not violate any rules. This is inconsistent with other rules that require code in the <script> and <template> blocks start a 1 level of indentation. Worse, it allows for inconsistent indentation within the block, allowing things like:

<style>
	body
{
		font-family: monospace;
		font-size: 14px;
		background: var(--background);
	}
</style>

and when --fix is run, "corrects" to:

<style>
body
	{
	font-family: monospace;
	font-size: 14px;
	background: var(--background);
}
</style>

What it should do

CSS should be indented starting at 1 indentation, and increase by 1 indentation every increase in depth. It should be consistent through out the <style> block.

<style>
	body
	{
		font-family: monospace;
		font-size: 14px;
		background: var(--background);
	}
</style>
@qjack001 qjack001 added the modification A rule should be changed label Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modification A rule should be changed
Projects
None yet
Development

No branches or pull requests

1 participant