Skip to content

[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

Merged
merged 2 commits into from
Jan 2, 2018
Merged

Conversation

mysticatea
Copy link
Member

This PR adds a new rule to enforce the location of closing brackets > of HTML tags.

@michalsnik
Copy link
Member

I commented #169 as I'm having little doubts regarding this rule

@mysticatea
Copy link
Member Author

I updated this PR to solve conflictions.

@michalsnik michalsnik changed the title New: html-closing-bracket-newline (fixes #169) [New] Add html-closing-bracket-newline (fixes #169) Dec 2, 2017
Copy link
Member

@michalsnik michalsnik left a 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.
Copy link
Member

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.
Copy link
Member

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too

@mysticatea
Copy link
Member Author

I updated this PR.

@michalsnik michalsnik merged commit cdd4163 into master Jan 2, 2018
@michalsnik
Copy link
Member

Great, thank you!

@michalsnik michalsnik deleted the issue169 branch January 2, 2018 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants