Skip to content

Upgrade vue eslint parser #404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion lib/rules/prop-name-casing.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = {
description: 'enforce specific casing for the Prop name in Vue components',
category: undefined // 'strongly-recommended'
},
fixable: null, // or "code" or "whitespace"
fixable: null, // or "code" or "whitespace"
schema: [
{
enum: allowedCaseOptions
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"eslint": "^3.18.0 || ^4.0.0"
},
"dependencies": {
"vue-eslint-parser": "^2.0.1"
"vue-eslint-parser": "^2.0.3"
},
"devDependencies": {
"@types/node": "^4.2.16",
Expand Down
5 changes: 3 additions & 2 deletions tests/lib/rules/no-parsing-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ tester.run('no-parsing-error', rule, {
code: '<template><div xmlns=""></template>',
options: [{ 'x-invalid-namespace': false }]
},
'<template><div/></template>'
'<template><div/></template>',
'<template><div v-show="">hello</div></template>'
],
invalid: [
{
Expand Down Expand Up @@ -238,7 +239,7 @@ tester.run('no-parsing-error', rule, {
},
{
filename: 'test.vue',
code: '<template><div v-show="">hello</div></template>',
code: '<template><div v-show=" ">hello</div></template>',
errors: [
{ message: 'Parsing error: Expected to be an expression, but got empty.', column: 24 }
]
Expand Down
5 changes: 5 additions & 0 deletions tests/lib/rules/valid-v-show.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ tester.run('valid-v-show', rule, {
filename: 'test.vue',
code: '<template><div v-show></div></template>',
errors: ["'v-show' directives require that attribute value."]
},
{
filename: 'test.vue',
code: '<template><div v-show=""></div></template>',
errors: ["'v-show' directives require that attribute value."]
}
]
})