Files
blockly/tsconfig.json
Beka Westberg f85304f0ae chore: use import type where possible (#6279)
* chore: automatically change imports to import types

* chore: revert changes that actually need to be imports

* chore: format

* chore: add more import type statements based on importsNotUsedAsValues

* chore: fix tsconfig

* chore: add link to compiler issue
2022-07-20 08:11:17 -07:00

30 lines
901 B
JSON

{
"include": [
"core/**/*", // N.B.: also pulls in closure/goog/goog.js if needed.
"closure/**/*", // Just for ouptut directory structure.
],
"compilerOptions": {
// Tells TypeScript to read JS files, as
// normally they are ignored as source files
"allowJs": true,
// Enable the next few options for type declarations.
// Generate d.ts files
//"declaration": true,
// Types should go into this directory.
// Removing this would place the .d.ts files
// next to the .js files
//"declarationDir": "build/ts/declarations",
"module": "ES2015",
"moduleResolution": "node",
"target": "ES2020",
"strict": true,
// This does not understand enums only used to define other enums, so we
// cannot leave it enabled.
// See: https://github.com/microsoft/TypeScript/issues/49974
// "importsNotUsedAsValues": "error"
}
}