Allow up to 3 attributes in single-line elements in vue
Description
Currently we frequently use <!-- eslint-disable vue/max-attributes-per-line -->
to allow writing more than one attribute in a single line. I think we should change our default linter settings instead.
Goal
Easier to read code.
Evidence
we use the directive 41 times...
Solution
Add this rule to eslintrs.js
:
'vue/max-attributes-per-line': [
'error',
{
singleline: 3,
multiline: {
max: 1,
allowFirstLine: false,
},
},
],