Skip to content

Commit 1ce4518

Browse files
committed
docs: add a note about the scriptLangs config for TypeScript projects
To mitigate confusions about the restrictions such as described in vuejs/create-vue#663
1 parent 7457b7e commit 1ce4518

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/eslint.config.ts.ejs

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescri
77
<%- importer %>
88
<%_ } _%>
99

10+
// To allow more languages other than `ts` in `.vue` files, uncomment the following lines:
11+
// import { configureVueProject } from '@vue/eslint-config-typescript'
12+
// configureVueProject({ scriptLangs: ['ts', 'tsx'] })
13+
// More info at https://github.com/vuejs/eslint-config-typescript/#advanced-setup
14+
1015
export default defineConfigWithVueTs(
1116
{
1217
name: 'app/files-to-lint',

0 commit comments

Comments
 (0)