From 5928d0ede7835b195e8c0829cbf8774fc83f5687 Mon Sep 17 00:00:00 2001 From: "ipcjs.mac4" Date: Wed, 11 Jun 2025 15:39:57 +0800 Subject: [PATCH] chore: update file patterns in ESLint configurations for TypeScript support --- packages/eslint-config-standard-with-typescript/base.js | 6 ++++-- .../eslint-config-standard-with-typescript/type-checked.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/eslint-config-standard-with-typescript/base.js b/packages/eslint-config-standard-with-typescript/base.js index c64d1c1..24d1965 100644 --- a/packages/eslint-config-standard-with-typescript/base.js +++ b/packages/eslint-config-standard-with-typescript/base.js @@ -1,4 +1,5 @@ import standard from '@vue/eslint-config-standard' +// eslint-disable-next-line no-unused-vars import tsEslintPlugin from '@typescript-eslint/eslint-plugin' import { createNextImportResolver } from 'eslint-import-resolver-next' @@ -24,9 +25,10 @@ export default [ { name: '@vue/typescript/standard', - files: ['*.ts', '*.tsx', '*.vue'], + files: ['**/*.ts', '**/*.tsx', '**/*.vue'], plugins: { - '@typescript-eslint': tsEslintPlugin + // Conflict with the configuration of typescript-eslint/base + // '@typescript-eslint': tsEslintPlugin }, rules: { diff --git a/packages/eslint-config-standard-with-typescript/type-checked.js b/packages/eslint-config-standard-with-typescript/type-checked.js index a704de6..b69fae8 100644 --- a/packages/eslint-config-standard-with-typescript/type-checked.js +++ b/packages/eslint-config-standard-with-typescript/type-checked.js @@ -8,7 +8,7 @@ export default [ { name: '@vue/typescript/standard/type-checked', - files: ['*.ts', '*.tsx', '*.vue'], + files: ['**/*.ts', '**/*.tsx', '**/*.vue'], rules: { 'dot-notation': 'off', '@typescript-eslint/dot-notation': ['error', { allowKeywords: true }],