-
-
Notifications
You must be signed in to change notification settings - Fork 681
[New] Add html-closing-bracket-newline
(fixes #169)
#190
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
Conversation
I commented #169 as I'm having little doubts regarding this rule |
I updated this PR to solve conflictions. |
html-closing-bracket-newline
(fixes #169)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 Good job @mysticatea I left just some minor copy suggestions
} | ||
``` | ||
|
||
- `singleline` ... the configuration for single-line elements. It's a single-line element if the element does not have attributes or the last attribute is on the same line of the opening bracket. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as the opening bracket
``` | ||
|
||
- `singleline` ... the configuration for single-line elements. It's a single-line element if the element does not have attributes or the last attribute is on the same line of the opening bracket. | ||
- `"never"` ... disallow line breaks before the closing bracket of elements. This is the default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd remove of elements
part
|
||
- `singleline` ... the configuration for single-line elements. It's a single-line element if the element does not have attributes or the last attribute is on the same line of the opening bracket. | ||
- `"never"` ... disallow line breaks before the closing bracket of elements. This is the default. | ||
- `"always"` ... require one line break before the closing bracket of elements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
I updated this PR. |
Great, thank you! |
This PR adds a new rule to enforce the location of closing brackets
>
of HTML tags.