From c47d53ffbd0464da1bb9081f6cc6957bd149d40c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=B1=E5=90=B9=E8=89=B2=E5=BE=A1=E5=AE=88?= <85992002+KazariEX@users.noreply.github.com> Date: Fri, 25 Oct 2024 09:29:29 +0800 Subject: [PATCH] chore: remove `importsNotUsedAsValues` (#4897) Co-authored-by: Johnson Chu --- packages/tsc/tests/typecheck.spec.ts | 2 -- test-workspace/tsc/passedFixtures/#3373/tsconfig.json | 4 ---- tsconfig.base.json | 2 -- 3 files changed, 8 deletions(-) diff --git a/packages/tsc/tests/typecheck.spec.ts b/packages/tsc/tests/typecheck.spec.ts index 68279f6379..9b981d2088 100644 --- a/packages/tsc/tests/typecheck.spec.ts +++ b/packages/tsc/tests/typecheck.spec.ts @@ -35,8 +35,6 @@ describe(`vue-tsc`, () => { "test-workspace/tsc/failureFixtures/directives/main.vue(4,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.", "test-workspace/tsc/failureFixtures/directives/main.vue(9,6): error TS2339: Property 'notExist' does not exist on type 'CreateComponentPublicInstanceWithMixins, { exist: typeof exist; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ... 18 more ..., {}>'.", "test-workspace/tsc/failureFixtures/directives/main.vue(12,2): error TS2578: Unused '@ts-expect-error' directive.", - "test-workspace/tsc/passedFixtures/#3373/tsconfig.json(4,3): error TS5102: Option 'importsNotUsedAsValues' has been removed. Please remove it from your configuration. - Use 'verbatimModuleSyntax' instead.", ] `); }); diff --git a/test-workspace/tsc/passedFixtures/#3373/tsconfig.json b/test-workspace/tsc/passedFixtures/#3373/tsconfig.json index 0995c7cf84..52ecbeb3c3 100644 --- a/test-workspace/tsc/passedFixtures/#3373/tsconfig.json +++ b/test-workspace/tsc/passedFixtures/#3373/tsconfig.json @@ -1,8 +1,4 @@ { "extends": "../../../tsconfig.base.json", - "compilerOptions": { - "importsNotUsedAsValues": "error", - "ignoreDeprecations": "5.0" - }, "include": [ "**/*" ] } diff --git a/tsconfig.base.json b/tsconfig.base.json index a4770d7cff..8887f35ffd 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -11,8 +11,6 @@ "noUnusedParameters": true, "esModuleInterop": false, "forceConsistentCasingInFileNames": true, - "ignoreDeprecations": "5.0", - "importsNotUsedAsValues": "error", }, "include": [ ], } \ No newline at end of file