From 110132e18bc2acf3e4dc96ea638185c6fa5e60e4 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Mon, 12 Oct 2020 19:56:26 +0900 Subject: [PATCH 1/2] Upgrade vue-eslint-parser to 7.1.1 and fixed CRLF issues. --- package.json | 2 +- tests/lib/rules/v-on-function-call.js | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ef4847dbf..0f09b2af8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tests/lib/rules/v-on-function-call.js b/tests/lib/rules/v-on-function-call.js index 4ba6f5b00..2dee605d0 100644 --- a/tests/lib/rules/v-on-function-call.js +++ b/tests/lib/rules/v-on-function-call.js @@ -117,7 +117,7 @@ tester.run('v-on-function-call', rule, { { filename: 'test.vue', code: '', - output: ``, + output: null, errors: [ "Method calls inside of 'v-on' directives must have parentheses." ], @@ -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: '', + output: '', + errors: [ + "Method calls without arguments inside of 'v-on' directives must not have parentheses." + ], + options: ['never'] } ] }) From b0966c5562ac706947bec0f8d84ee8ac609c2035 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Tue, 13 Oct 2020 18:15:28 +0900 Subject: [PATCH 2/2] move vue-eslint-parser repo --- README.md | 2 +- docs/developer-guide/README.md | 2 +- docs/rules/html-indent.md | 2 +- docs/rules/no-restricted-syntax.md | 4 ++-- docs/rules/script-indent.md | 2 +- typings/eslint-plugin-vue/util-types/ast/v-ast.ts | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index c34728c49..c8951f0a3 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Since single file components in Vue are not plain JavaScript, the default parser To know more about certain nodes in produced ASTs, go here: - [ESTree docs](https://github.com/estree/estree) -- [vue-eslint-parser AST docs](https://github.com/mysticatea/vue-eslint-parser/blob/master/docs/ast.md) +- [vue-eslint-parser AST docs](https://github.com/vuejs/vue-eslint-parser/blob/master/docs/ast.md) The `vue-eslint-parser` provides a few useful parser services that help traverse the produced AST and access tokens of the template: - `context.parserServices.defineTemplateBodyVisitor(visitor, scriptVisitor)` diff --git a/docs/developer-guide/README.md b/docs/developer-guide/README.md index d216984b8..f08ecc3a8 100644 --- a/docs/developer-guide/README.md +++ b/docs/developer-guide/README.md @@ -39,7 +39,7 @@ Since single file components in Vue are not plain JavaScript, we can't use the d To know more about certain nodes in produced ASTs, go here: - [ESTree docs](https://github.com/estree/estree) -- [vue-eslint-parser AST docs](https://github.com/mysticatea/vue-eslint-parser/blob/master/docs/ast.md) +- [vue-eslint-parser AST docs](https://github.com/vuejs/vue-eslint-parser/blob/master/docs/ast.md) The `vue-eslint-parser` provides few useful parser services, to help traverse the produced AST and access tokens of the template: - `context.parserServices.defineTemplateBodyVisitor(visitor, scriptVisitor)` diff --git a/docs/rules/html-indent.md b/docs/rules/html-indent.md index c3a45f273..ab6e144d5 100644 --- a/docs/rules/html-indent.md +++ b/docs/rules/html-indent.md @@ -82,7 +82,7 @@ This rule enforces a consistent indentation style in `