mirror of
https://github.com/facebook/react.git
synced 2026-02-21 19:31:52 +00:00
[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)
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
},
|
||||
"verbatimModuleSyntax": true,
|
||||
"module": "ESNext",
|
||||
"allowSyntheticDefaultImports": true
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"moduleDetection": "force"
|
||||
|
||||
},
|
||||
"include": [
|
||||
"./compiler/**/*.js",
|
||||
|
||||
Reference in New Issue
Block a user