@samitouri / QOS-React-1 / commits / 33195602ea

[compiler][ez] tsconfig: treat all snap fixtures as modules (#31350)

Qol improvement. Currently, typescript lints treat test fixtures without an export as a 'global script' (see [docs](https://www.typescriptlang.org/docs/handbook/2/modules.html#how-javascript-modules-are-defined)). This gives confusing lints for duplicate declarations (in the global scope)

mofeiZ committed Nov 5, 2024 at 17:57 UTC 33195602ea125af38f9460f0bb2ccab8713e5f10
1 file changed +3 -1
compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/tsconfig.json
+3 -1
@@ -19,7 +19,9 @@
19 },
20 "verbatimModuleSyntax": true,
21 "module": "ESNext",
22 - "allowSyntheticDefaultImports": true
22 + "allowSyntheticDefaultImports": true,
23 + "moduleDetection": "force"
24 +
25 },
26 "include": [
27 "./compiler/**/*.js",