Skip to content

Commit

Permalink
HUE-9486 [ui] Fix conflicts with the Vue linter and prettier
Browse files Browse the repository at this point in the history
This takes care of some conflicting rules leading to unresolvable lint issues.
  • Loading branch information
JohanAhlen authored and romainr committed Sep 29, 2020
1 parent 54510a6 commit d66c0c4
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ module.exports = {
'plugin:@typescript-eslint/recommended'
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: "@typescript-eslint/parser"
},
plugins: ['vue', '@typescript-eslint'],
rules: {
'vue/max-attributes-per-line': [
Expand All @@ -85,7 +88,16 @@ module.exports = {
allowFirstLine: false
}
}
]
],
'vue/html-self-closing': [
"error",
{
"html": {
"void": "any"
}
}
],
'vue/singleline-html-element-content-newline': 0, // Conflicts with prettier
}
},
{
Expand Down

0 comments on commit d66c0c4

Please sign in to comment.