Skip to content

Instantly share code, notes, and snippets.

@doclaag
Created November 1, 2023 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save doclaag/e40a9d532fa2f7119691245de90cbccb to your computer and use it in GitHub Desktop.
Save doclaag/e40a9d532fa2f7119691245de90cbccb to your computer and use it in GitHub Desktop.
TSConfig para paquetes de NPM
{
"compilerOptions": {
// Para archivos de declaraciones
"outDir": "dist",
"target": "ES2020",
"declaration": true,
"allowJs": true,
"emitDeclarationOnly": false,
"declarationMap": false,
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": false,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": false,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
// "references": [{ "path": "./tsconfig.node.json" }]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment