Closed
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
- git clone
- npm i
- npx eslint ./src/components/tmp.vue --fix
Expected Result
<script lang="ts">
/* eslint-disable class-methods-use-this */
export default class Cmp {
get a() {
const list: Array<string> = [];
return list;
}
async mounted() {
this.a as Array<string>;
}
}
</script>
Actual Result
<script lang="ts">
/* eslint-disable class-methods-use-this */
export default class Cmp {
get a() {
const list: Array<string> = [];
return list;
}
async mouna as Array<string>;
}
}
</script>
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.2.0 |
@typescript-eslint/parser |
4.2.0 |
TypeScript |
3.9.3 |
ESLint |
7.9.0 |
node |
10.14.2 |