-
Notifications
You must be signed in to change notification settings - Fork 9
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
Indentation broken when "vue/max-attributes-per-line" reformats line #8
Comments
I am planning to add some pug-specific rules to this plugin, for example for attribute delimiters. I need to look into indentation too. |
That would be fantastic. Handling the indentation, and also the closing parenthesis on a new line, would be a great improvement. I'd be happy to contribute if needed, feel free to ping me if so. |
I've been quite busy with some other projects these last few months, but adding pug indent rules is definitely on my list of things to do. I can't tell you when, though, sorry. |
@rashfael any news on this? is this issue still in work or abandoned? |
I haven't done any work on this issue, but the plugin is not abandoned. I'm still using it and pug myself. |
Same issue and finnally used vim visual selection and regex to fix indent manually😂 |
I'm disabling these rules alongside with prettier-plugin-pug to enforcing them "vue/first-attribute-linebreak": ["off"]
"vue/html-closing-bracket-newline": ["off"]
"vue/html-closing-bracket-spacing": ["off"]
"vue/max-attributes-per-line": ["off"]
"vue/multiline-html-element-content-newline": ["off"]
"vue/mustache-interpolation-spacing": ["off"]
"vue/no-multi-spaces": ["off"]
"vue/no-spaces-around-equal-signs-in-attribute": ["off"]
"vue/singleline-html-element-content-newline": ["off"]
"vue/attributes-order": ["off"]
"vue/component-tags-order": ["off"]
"vue/order-in-components": ["off"]
"vue/html-comment-content-newline": ["off"]
"vue/html-comment-content-spacing": ["off"]
"vue/html-comment-indent": ["off"]
"vue/new-line-between-multi-line-property": ["off"]
"vue/padding-line-between-tags": ["off"]
"vue/padding-line-between-blocks": ["off"] |
@rashfael Any news about fixing this issue? |
Is there any update regarding this? I'm particularly interested in enabling vue/html-indent rule for Pug templates. |
When
vue/max-attributes-per-line
reformats the line, the attributes end up completely unindented:becomes:
when ideally it should be:
I'm not sure if this plugin alone is enough to lint things like indentation for the pug templates in SFCs? I know I can use
prettier/plugin-pug
with prettier, but I would prefer to avoid prettier altogether and rely on just eslint.The text was updated successfully, but these errors were encountered: