Skip to content

No longer support lang='tsx'? Only "ts" can be used for the 'lang' attribute of '<script>' #13252

Closed Answered by seepine
seepine asked this question in Help/Questions
Discussion options

You must be logged in to vote

Modify eslint.config.ts, can work.

import { globalIgnores } from 'eslint/config'
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
import pluginVue from 'eslint-plugin-vue'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'

// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
import { configureVueProject } from '@vue/eslint-config-typescript'
configureVueProject({ scriptLangs: ['ts', 'tsx'] })
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup

export default defineConfigWithVueTs(
  {
    name: 'app/files-to-lint',
    files: ['**/*.{ts,mts,tsx,vue}'],
  },

  glo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by seepine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant