Skip to content

Commit

Permalink
- Linting: Update eslint-plugin-vue and apply new requested rule "blo…
Browse files Browse the repository at this point in the history
…ck-tag-newline" for enforcing consistency of line breaks within block tags
  • Loading branch information
brettz9 committed Oct 20, 2020
1 parent a7b397b commit c5f895c
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 10 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ const baseTSConfigs = [
const vueRules = {
// Disabling as Vue linter won't catch (and we are requiring `name` anyways)
'import/no-anonymous-default-export': 'off',
// For prohibiting new lines, filed:
// https://github.com/vuejs/eslint-plugin-vue/issues/1325

// Temporarily disable
'vue/no-boolean-default': 'off',
Expand All @@ -43,6 +41,7 @@ const vueRules = {
'vue/attributes-order': 'off',
'vue/max-attributes-per-line': 'off',

'vue/block-tag-newline': ['error'],
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
'vue/html-comment-content-newline': ['error'],
'vue/html-comment-content-spacing': ['error'],
Expand Down
44 changes: 38 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-standard": "^4.0.1",
"eslint-plugin-unicorn": "^22.0.0",
"eslint-plugin-vue": "^7.0.1",
"eslint-plugin-vue": "^7.1.0",
"fast-glob": "^3.2.4",
"fs-extra": "^9.0.1",
"htmlparser2": "^5.0.0",
Expand Down
1 change: 0 additions & 1 deletion src/components/compounds/Accordion/Accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ export default {
return { state, toggle, open, close, rootClasses, headerClasses, triggerClasses }
}
}
</script>

<template>
Expand Down

0 comments on commit c5f895c

Please sign in to comment.