Skip to content

Instantly share code, notes, and snippets.

@thiagosouza
Last active March 31, 2021 15:25
Show Gist options
  • Save thiagosouza/f35f4cf48a41b3daf09f0105b8a8319a to your computer and use it in GitHub Desktop.
Save thiagosouza/f35f4cf48a41b3daf09f0105b8a8319a to your computer and use it in GitHub Desktop.
[Typescript] Typescript #typescript
{
"extends": "@tsconfig/node12/tsconfig.json",
"compilerOptions": {
"preserveConstEnums": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts"]
}
# manual:
# https://www.typescriptlang.org/docs/handbook/tsconfig-json.html
# https://www.typescriptlang.org/tsconfig
#install Typescript as a dev dependency
npm install -D typescript
#https://github.com/tsconfig/bases
#Install:
npm install --save-dev @tsconfig/recommended
yarn add --dev @tsconfig/recommended
#Add to your tsconfig.json:
#"extends": "@tsconfig/recommended/tsconfig.json"
echo $(cat tsconfig.json | jq --arg extends @tsconfig/recommended/tsconfig.json '. += {extends:$extends}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment