From 82dfb9c3115a6e5f0a8e0a927567c29bbebf260a Mon Sep 17 00:00:00 2001 From: Toru Nagashima Date: Fri, 23 Feb 2018 18:51:32 +0900 Subject: [PATCH 1/2] Fix: a linting error --- lib/rules/prop-name-casing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/prop-name-casing.js b/lib/rules/prop-name-casing.js index 02070af22..f744aee5a 100644 --- a/lib/rules/prop-name-casing.js +++ b/lib/rules/prop-name-casing.js @@ -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 From 3a5445ee3f0dbc834071d97e30b5c5d2a083434a Mon Sep 17 00:00:00 2001 From: Toru Nagashima Date: Fri, 23 Feb 2018 18:52:11 +0900 Subject: [PATCH 2/2] Fix: upgrade vue-eslint-parser and fix invalid tests --- package.json | 2 +- tests/lib/rules/no-parsing-error.js | 5 +++-- tests/lib/rules/valid-v-show.js | 5 +++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d469372b4..12e8a9473 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tests/lib/rules/no-parsing-error.js b/tests/lib/rules/no-parsing-error.js index cbb3962ec..fcb4c351a 100644 --- a/tests/lib/rules/no-parsing-error.js +++ b/tests/lib/rules/no-parsing-error.js @@ -206,7 +206,8 @@ tester.run('no-parsing-error', rule, { code: '', options: [{ 'x-invalid-namespace': false }] }, - '' + '', + '' ], invalid: [ { @@ -238,7 +239,7 @@ tester.run('no-parsing-error', rule, { }, { filename: 'test.vue', - code: '', + code: '', errors: [ { message: 'Parsing error: Expected to be an expression, but got empty.', column: 24 } ] diff --git a/tests/lib/rules/valid-v-show.js b/tests/lib/rules/valid-v-show.js index 03f7f7694..31b4d03b4 100644 --- a/tests/lib/rules/valid-v-show.js +++ b/tests/lib/rules/valid-v-show.js @@ -47,6 +47,11 @@ tester.run('valid-v-show', rule, { filename: 'test.vue', code: '', errors: ["'v-show' directives require that attribute value."] + }, + { + filename: 'test.vue', + code: '', + errors: ["'v-show' directives require that attribute value."] } ] })