Skip to content

Instantly share code, notes, and snippets.

@utimur
Created July 2, 2022 13:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save utimur/0e47c843fb1d1fb23870d8e8ac5b4bb1 to your computer and use it in GitHub Desktop.
Save utimur/0e47c843fb1d1fb23870d8e8ac5b4bb1 to your computer and use it in GitHub Desktop.
{
"compilerOptions": {
// куда собираем
"outDir": "./build/",
// запрет на any
"noImplicitAny": true,
"module": "ESNext",
// в какой формат копилируем, в данном случае ecmascript 6
"target": "es6",
"jsx": "react-jsx",
// Компилятор будет обрабатывать не только TS файлы, но и JS файлы
"allowJs": true,
// Строгий режим
"strict": true,
"esModuleInterop": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
// Обязательное поле при использовании с esbuild
"isolatedModules": true
},
"ts-node": {
"compilerOptions": {
"module": "commonjs"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment