Skip to content

Commit

Permalink
feat(html): Add @html-eslint/attrs-newline rule
Browse files Browse the repository at this point in the history
  • Loading branch information
MorevM committed Jun 22, 2024
1 parent b9b407c commit ac3de36
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configurations/html/rules/style.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
module.exports = {
rules: {
// Require newline between attributes (autofixable)
// https://yeonjuan.github.io/html-eslint/docs/rules/attrs-newline
'@html-eslint/attrs-newline': ['warn', {
closeStyle: 'newline',
ifAttrsMoreThan: 5,
}],

// Require newline between elements (autofixable)
// https://yeonjuan.github.io/html-eslint/docs/rules/element-newline
'@html-eslint/element-newline': 'error',
Expand Down

0 comments on commit ac3de36

Please sign in to comment.