Skip to content

Commit

Permalink
chore: extend eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
AloisSeckar committed Nov 30, 2024
1 parent 1f48868 commit e0be61d
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default withNuxt([
// you can adjust or even turn off some rules if you cannot or don't want to satisfy them
{
rules: {
// default for this rule is "1", but I find it too restrictive
// https://eslint.vuejs.org/rules/max-attributes-per-line.html
// the default for this rule is "1", but I find it too restrictive
// https://eslint.vuejs.org/rules/max-attributes-per-line.html
'vue/max-attributes-per-line': ['error', {
singleline: {
max: 4,
Expand All @@ -22,6 +22,18 @@ export default withNuxt([
max: 3,
},
}],
// the default rule forces newline after "else"
// I prefer using "} else {" on single row
'vue/html-closing-bracket-newline': [
'error',
{
multiline: 'never',
selfClosingTag: {
multiline: 'never',
},
},
],
'@stylistic/brace-style': 'off',
},
},

Expand Down

0 comments on commit e0be61d

Please sign in to comment.