Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Upgrade vue-eslint-parser to 7.1.1 and fixed CRLF issues.
  • Loading branch information
ota-meshi committed Oct 12, 2020
commit 110132e18bc2acf3e4dc96ea638185c6fa5e60e4
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"eslint-utils": "^2.1.0",
"natural-compare": "^1.4.0",
"semver": "^7.3.2",
"vue-eslint-parser": "^7.1.0"
"vue-eslint-parser": "^7.1.1"
},
"devDependencies": {
"@types/eslint": "^7.2.0",
Expand Down
11 changes: 10 additions & 1 deletion tests/lib/rules/v-on-function-call.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ tester.run('v-on-function-call', rule, {
{
filename: 'test.vue',
code: '<template><div @click="foo"></div></template>',
output: `<template><div @click="foo"></div></template>`,
output: null,
errors: [
"Method calls inside of 'v-on' directives must have parentheses."
],
Expand Down Expand Up @@ -246,6 +246,15 @@ tester.run('v-on-function-call', rule, {
"Method calls without arguments inside of 'v-on' directives must not have parentheses."
],
options: ['never']
},
{
filename: 'test.vue',
code: '<template>\r\n<div\r\n@click="foo()" /></template>',
output: '<template>\r\n<div\r\n@click="foo" /></template>',
errors: [
"Method calls without arguments inside of 'v-on' directives must not have parentheses."
],
options: ['never']
}
]
})