Closed
Description
Version
3.2.0
Reproduction link
https://github.com/Dzinlife/vue-tsx-test
Environment info
Environment Info:
System:
OS: macOS 10.14.2
CPU: (8) x64 Intel(R) Core(TM) i7-3635QM CPU @ 2.40GHz
Binaries:
Node: 10.12.0 - /usr/local/bin/node
Yarn: yarn install v0.24.6
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 17.57s. - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: 71.0.3578.98
Firefox: 57.0
Safari: 12.0.2
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.0.0-beta.1
@vue/babel-plugin-transform-vue-jsx: 1.0.0-beta.1
@vue/babel-preset-app: 3.3.0
@vue/babel-preset-jsx: 1.0.0-beta.1
@vue/babel-sugar-functional-vue: 1.0.0-beta.1
@vue/babel-sugar-inject-h: 1.0.0-beta.1
@vue/babel-sugar-v-model: 1.0.0-beta.1
@vue/babel-sugar-v-on: 1.0.0-beta.1
@vue/cli-overlay: 3.3.0
@vue/cli-plugin-babel: ^3.3.0 => 3.3.0
@vue/cli-plugin-eslint: ^3.3.0 => 3.3.0
@vue/cli-plugin-typescript: ^3.3.0 => 3.3.0
@vue/cli-service: ^3.3.0 => 3.3.0
@vue/cli-shared-utils: 3.3.0
@vue/component-compiler-utils: 2.5.0
@vue/eslint-config-standard: ^4.0.0 => 4.0.0
@vue/eslint-config-typescript: 3.2.0 => 3.2.0
@vue/preload-webpack-plugin: 1.1.0
@vue/web-component-wrapper: 1.2.0
babel-helper-vue-jsx-merge-props: 2.0.3
babel-plugin-transform-vue-jsx: 4.0.1
eslint-plugin-vue: 4.7.1
vue: ^2.5.21 => 2.5.21
vue-class-component: ^6.3.2 => 6.3.2
vue-eslint-parser: 2.0.3
vue-hot-reload-api: 2.3.1
vue-loader: 15.5.1
vue-property-decorator: ^7.2.0 => 7.2.0
vue-router: ^3.0.2 => 3.0.2
vue-style-loader: 4.1.2
vue-template-compiler: ^2.5.21 => 2.5.21
vue-template-es2015-compiler: 1.6.0
vuex: ^3.0.1 => 3.0.1
npmGlobalPackages:
@vue/cli: 3.2.1
Steps to reproduce
update to @vue/eslint-config-typescript@3.2.0, tsx code linting failed
error: Parsing error: Unterminated regular expression literal
What is expected?
tsx linting correct on @vue/eslint-config-typescript@3.1.1 and before, this error only happens on version 3.2.0
What is actually happening?
tsx code can't be parsing correct in vue render function