Skip to content

Commit

Permalink
docs: add a note about the scriptLangs config for TypeScript projects
Browse files Browse the repository at this point in the history
To mitigate confusions about the restrictions such as described in vuejs/create-vue#663
  • Loading branch information
haoqunjiang committed Jan 20, 2025
1 parent 7457b7e commit 1ce4518
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/eslint.config.ts.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescri
<%- importer %>
<%_ } _%>

// 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',
Expand Down

0 comments on commit 1ce4518

Please sign in to comment.