Skip to content

Instantly share code, notes, and snippets.

@almeidarenato
Created January 28, 2022 02:26
Show Gist options
  • Save almeidarenato/ee2e7eadfff4030a36a834e93bb7eee6 to your computer and use it in GitHub Desktop.
Save almeidarenato/ee2e7eadfff4030a36a834e93bb7eee6 to your computer and use it in GitHub Desktop.
Configuração para arquivo de configurações do typescript
{
"compilerOptions": {
/* Language and Environment */
"lib": ["dom","DOM.Iterable","esnext"],
"jsx": "react-jsx", /* entender que estamos usando o react javascript */
/* Modules */
"module": "commonjs", /* Specify what module code is generated. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"resolveJsonModule": true, /* permite importar arquivos json */
"allowJs": true, /* permite arquivos javascript e typescript */
"noEmit": true, /* Disable emitting files from a compilation. */
/* Interop Constraints */
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
/* Type Checking */
"strict": true, /* modo de lidar com erros no javascript */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"include": ["src"] // informa ao typescript onde está o código da aplicação
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment