Skip to content

Commit 956f5a5

Browse files
committed
Fix: vue/no-shared-component-data doesn't work (fixes #4)
1 parent 6b1e550 commit 956f5a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default {
6868
computed: {
6969
messages() {
7070
try {
71-
return linter.verify(this.code, this.config)
71+
return linter.verify(this.code, this.config, "vue-eslint-demo.vue")
7272
}
7373
catch (err) {
7474
return [{
@@ -83,7 +83,7 @@ export default {
8383
8484
fixResult() {
8585
try {
86-
return linter.verifyAndFix(this.code, this.config)
86+
return linter.verifyAndFix(this.code, this.config, "vue-eslint-demo.vue")
8787
}
8888
catch (err) {
8989
return {

0 commit comments

Comments
 (0)