mirror of
https://github.com/google/blockly.git
synced 2026-05-09 13:40:11 +02:00
f85304f0ae
* 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
30 lines
901 B
JSON
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"
|
|
}
|
|
}
|