Skip to content

Commit 6fc2cfd

Browse files
committed
feat: add 'erasableSyntaxOnly' option to tsconfig files
1 parent 931f208 commit 6fc2cfd

File tree

21 files changed

+25
-2
lines changed

21 files changed

+25
-2
lines changed

.pkgs/configs/tsconfig.base.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"extends": [
33
"@tsconfig/strictest/tsconfig.json"
4-
]
4+
],
5+
"compilerOptions": {
6+
"erasableSyntaxOnly": true
7+
}
58
}

.pkgs/eslint-plugin-local/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"allowJs": false,
1515
"checkJs": false,
1616
"strict": true,
17+
"erasableSyntaxOnly": true,
1718
"noImplicitAny": true,
1819
"noImplicitThis": true,
1920
"noUnusedLocals": false,

apps/website/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"allowJs": true,
1111
"skipLibCheck": true,
1212
"strict": true,
13+
"erasableSyntaxOnly": true,
1314
"forceConsistentCasingInFileNames": true,
1415
"noEmit": true,
1516
"esModuleInterop": true,

examples/dual-react-dom-lib/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"noEmit": true,
2121
"jsx": "preserve",
2222
"strict": true,
23+
"erasableSyntaxOnly": true,
2324
"noUnusedLocals": true,
2425
"noUnusedParameters": true,
2526
"noPropertyAccessFromIndexSignature": false,

examples/vite-react-dom-app/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"noEmit": true,
2424
"jsx": "react-jsx",
2525
"strict": true,
26+
"erasableSyntaxOnly": true,
2627
"noUnusedLocals": true,
2728
"noUnusedParameters": true,
2829
"noPropertyAccessFromIndexSignature": false,

examples/vite-react-dom-with-ts-blank-eslint-parser-app/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"noEmit": true,
2424
"jsx": "react-jsx",
2525
"strict": true,
26+
"erasableSyntaxOnly": true,
2627
"noUnusedLocals": true,
2728
"noUnusedParameters": true,
2829
"noPropertyAccessFromIndexSignature": false,

packages/core/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"allowJs": false,
1515
"checkJs": false,
1616
"strict": true,
17+
"erasableSyntaxOnly": true,
1718
"noImplicitAny": true,
1819
"noImplicitThis": true,
1920
"noUnusedLocals": false,

packages/plugins/eslint-plugin-react-debug/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"allowJs": false,
1515
"checkJs": false,
1616
"strict": true,
17+
"erasableSyntaxOnly": true,
1718
"noImplicitAny": true,
1819
"noImplicitThis": true,
1920
"noUnusedLocals": false,

packages/plugins/eslint-plugin-react-dom/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"allowJs": false,
1515
"checkJs": false,
1616
"strict": true,
17+
"erasableSyntaxOnly": true,
1718
"noImplicitAny": true,
1819
"noImplicitThis": true,
1920
"noUnusedLocals": false,

packages/plugins/eslint-plugin-react-hooks-extra/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"allowJs": false,
1515
"checkJs": false,
1616
"strict": true,
17+
"erasableSyntaxOnly": true,
1718
"noImplicitAny": true,
1819
"noImplicitThis": true,
1920
"noUnusedLocals": false,

0 commit comments

Comments
 (0)