Skip to content

vue/no-parsing-error: comma-separated methods #96

Closed
@tg24

Description

@tg24

Hi,

my installed eslint packages are the following:

[email protected]
vue-eslint-parser@^1.1.0-7
[email protected]
[email protected]
eslint-scope@^3.7.1
[email protected]
eslint@^4.0.0
[email protected]
eslint-scope@^3.7.1`

my config file contains:

"extends": [
      "plugin:vue/recommended"
  ],

The following lines of HTML

<a title="upload file" href="" class="button" @click.prevent="setUploadType('DIR'); showModal('uploadFile')">
            <i class="fa fa-fw fa-lg fa-cloud-upload" aria-hidden="true"></i>
</a>

are producing this error:

32:79 error Parsing error: Unexpected token ; vue/no-parsing-error

Calling two methods in one @click is working and seems to be valid javascript.
So maybe this is a bug in this rule.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions