Skip to content

Commit dc0e3ea

Browse files
authoredOct 30, 2021
Upgrade vue-eslint-parser to use patch. (#1691)
* Upgrade vue-eslint-parser to use patch. https://github.com/vuejs/vue-eslint-parser/releases/tag/v8.0.1 * fix
1 parent ec7cb15 commit dc0e3ea

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"eslint-utils": "^3.0.0",
5858
"natural-compare": "^1.4.0",
5959
"semver": "^7.3.5",
60-
"vue-eslint-parser": "^8.0.0"
60+
"vue-eslint-parser": "^8.0.1"
6161
},
6262
"devDependencies": {
6363
"@types/eslint": "^7.28.1",

‎tests/lib/rules/no-async-in-computed-properties.js

+25
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,31 @@ ruleTester.run('no-async-in-computed-properties', rule, {
307307
}
308308
`,
309309
parserOptions
310+
},
311+
{
312+
// https://github.com/vuejs/eslint-plugin-vue/issues/1690
313+
filename: 'test.vue',
314+
parser,
315+
parserOptions: {
316+
sourceType: 'module',
317+
ecmaVersion: 2020
318+
},
319+
code: `
320+
<template>
321+
<div class="f-c" style="height: 100%;">
322+
</div>
323+
</template>
324+
<script setup>
325+
import { ref, computed } from 'vue' // each time uncomment error will print. anything from 'vue'
326+
import { useStore } from 'vuex' // others like this is ok
327+
</script>
328+
<script>
329+
export default {
330+
name: 'App',
331+
components: {
332+
},
333+
}
334+
</script>`
310335
}
311336
],
312337

0 commit comments

Comments
 (0)
Please sign in to comment.