From 3370351d00e81175e4cfe23869f6e2fabddd25d2 Mon Sep 17 00:00:00 2001 From: Peter van Meijgaard Date: Fri, 28 Feb 2025 22:10:29 +0100 Subject: [PATCH] Enable erasableSyntaxOnly by default Now that TypeScript 5.8 is stable, we can safely enable the erasableSyntaxOnly option --- .changeset/giant-shirts-reflect.md | 5 +++++ bundler/dom.json | 1 + bundler/no-dom.json | 1 + tsc/dom/app.json | 1 + tsc/dom/library-monorepo.json | 1 + tsc/dom/library.json | 1 + tsc/no-dom/app.json | 1 + tsc/no-dom/library-monorepo.json | 1 + tsc/no-dom/library.json | 1 + 9 files changed, 13 insertions(+) create mode 100644 .changeset/giant-shirts-reflect.md diff --git a/.changeset/giant-shirts-reflect.md b/.changeset/giant-shirts-reflect.md new file mode 100644 index 0000000..1430c16 --- /dev/null +++ b/.changeset/giant-shirts-reflect.md @@ -0,0 +1,5 @@ +--- +"@total-typescript/tsconfig": major +--- + +Enable erasableSyntaxOnly by default diff --git a/bundler/dom.json b/bundler/dom.json index fdcc491..19d5b1d 100644 --- a/bundler/dom.json +++ b/bundler/dom.json @@ -11,6 +11,7 @@ "verbatimModuleSyntax": true, /* Strictness */ "strict": true, + "erasableSyntaxOnly": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, /* If NOT transpiling with TypeScript: */ diff --git a/bundler/no-dom.json b/bundler/no-dom.json index 1158b25..3ad3cc8 100644 --- a/bundler/no-dom.json +++ b/bundler/no-dom.json @@ -11,6 +11,7 @@ "verbatimModuleSyntax": true, /* Strictness */ "strict": true, + "erasableSyntaxOnly": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, /* If NOT transpiling with TypeScript: */ diff --git a/tsc/dom/app.json b/tsc/dom/app.json index 5039dd7..b46acca 100644 --- a/tsc/dom/app.json +++ b/tsc/dom/app.json @@ -11,6 +11,7 @@ "verbatimModuleSyntax": true, /* Strictness */ "strict": true, + "erasableSyntaxOnly": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, /* If transpiling with TypeScript: */ diff --git a/tsc/dom/library-monorepo.json b/tsc/dom/library-monorepo.json index 3d651db..16ce8b8 100644 --- a/tsc/dom/library-monorepo.json +++ b/tsc/dom/library-monorepo.json @@ -11,6 +11,7 @@ "verbatimModuleSyntax": true, /* Strictness */ "strict": true, + "erasableSyntaxOnly": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, /* If transpiling with TypeScript: */ diff --git a/tsc/dom/library.json b/tsc/dom/library.json index f63589a..d43061a 100644 --- a/tsc/dom/library.json +++ b/tsc/dom/library.json @@ -11,6 +11,7 @@ "verbatimModuleSyntax": true, /* Strictness */ "strict": true, + "erasableSyntaxOnly": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, /* If transpiling with TypeScript: */ diff --git a/tsc/no-dom/app.json b/tsc/no-dom/app.json index aeb8369..a3a58db 100644 --- a/tsc/no-dom/app.json +++ b/tsc/no-dom/app.json @@ -11,6 +11,7 @@ "verbatimModuleSyntax": true, /* Strictness */ "strict": true, + "erasableSyntaxOnly": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, /* If transpiling with TypeScript: */ diff --git a/tsc/no-dom/library-monorepo.json b/tsc/no-dom/library-monorepo.json index f62386a..fd0aeea 100644 --- a/tsc/no-dom/library-monorepo.json +++ b/tsc/no-dom/library-monorepo.json @@ -11,6 +11,7 @@ "verbatimModuleSyntax": true, /* Strictness */ "strict": true, + "erasableSyntaxOnly": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, /* If transpiling with TypeScript: */ diff --git a/tsc/no-dom/library.json b/tsc/no-dom/library.json index d10ca1a..6503ee8 100644 --- a/tsc/no-dom/library.json +++ b/tsc/no-dom/library.json @@ -11,6 +11,7 @@ "verbatimModuleSyntax": true, /* Strictness */ "strict": true, + "erasableSyntaxOnly": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, /* If transpiling with TypeScript: */