Skip to content

Commit

Permalink
Upgrade vue-eslint-parser to use patch. (#1691)
Browse files Browse the repository at this point in the history
* Upgrade vue-eslint-parser to use patch.

https://github.com/vuejs/vue-eslint-parser/releases/tag/v8.0.1

* fix
  • Loading branch information
ota-meshi committed Oct 30, 2021
1 parent ec7cb15 commit dc0e3ea
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -57,7 +57,7 @@
"eslint-utils": "^3.0.0",
"natural-compare": "^1.4.0",
"semver": "^7.3.5",
"vue-eslint-parser": "^8.0.0"
"vue-eslint-parser": "^8.0.1"
},
"devDependencies": {
"@types/eslint": "^7.28.1",
Expand Down
25 changes: 25 additions & 0 deletions tests/lib/rules/no-async-in-computed-properties.js
Expand Up @@ -307,6 +307,31 @@ ruleTester.run('no-async-in-computed-properties', rule, {
}
`,
parserOptions
},
{
// https://github.com/vuejs/eslint-plugin-vue/issues/1690
filename: 'test.vue',
parser,
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
code: `
<template>
<div class="f-c" style="height: 100%;">
</div>
</template>
<script setup>
import { ref, computed } from 'vue' // each time uncomment error will print. anything from 'vue'
import { useStore } from 'vuex' // others like this is ok
</script>
<script>
export default {
name: 'App',
components: {
},
}
</script>`
}
],

Expand Down

0 comments on commit dc0e3ea

Please sign in to comment.