Skip to content

Commit

Permalink
chore: fix some eslint errors so as not to interrupt publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Dec 30, 2018
1 parent b30e2b7 commit cbcd2c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
class="children"
:transform="`translate(${size / 2}, ${size / 2})`"
>
<!-- eslint-disable vue/no-use-v-if-with-v-for -->
<DonutModule
v-for="m of module.children"
v-if="isVisible(getRatio(m, ratio))"
Expand Down
1 change: 1 addition & 0 deletions packages/@vue/cli-ui-addon-widgets/src/components/News.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export default {
},
computed: {
// eslint-disable-next-line vue/return-in-computed-property
errorData () {
if (this.error) {
return ERRORS[this.error]
Expand Down
5 changes: 4 additions & 1 deletion packages/@vue/cli-ui/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ module.exports = {
],

rules: {
'vue/html-self-closing': 'error'
'vue/html-self-closing': 'error',
'vue/no-use-v-if-with-v-for': 'warn',
'vue/no-unused-vars': 'warn',
'vue/return-in-computed-property': 'warn',
}
}

0 comments on commit cbcd2c1

Please sign in to comment.