Skip to content

Commit

Permalink
Add tsconfig and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmasn committed Apr 9, 2021
1 parent 6e6af5f commit d649f9e
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*]
indent_size = 2
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,29 @@
# tsconfig
# @devsht/tsconfig

Reusable TS config

## Installation

```bash
npm i -D @devsht/tsconfig
```

or

```
yarn add --dev @devsht/tsconfig
```

## Usage

Create a **tsconfig.json** and add this package to the extends field.

```
{
"extends": "@devsht/tsconfig",
"compilerOptions": {
"outDir": "dist"
},
"include": ["src"]
}
```
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "@devsht/tsconfig",
"version": "0.0.0",
"description": "Reusable TS config",
"main": "tsconfig.json",
"repository": "[email protected]:devsht/tsconfig.git",
"author": "Michael Mason <[email protected]>"
}
28 changes: 28 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"compilerOptions": {
"allowUnreachableCode": false,
"alwaysStrict": true,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"importsNotUsedAsValues": "preserve",
"isolatedModules": true,
"jsx": "react-jsx",
"lib": ["ES2020"],
"module": "commonjs",
"noEmitOnError": true,
"noErrorTruncation": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"removeComments": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "ES2020"
}
}

0 comments on commit d649f9e

Please sign in to comment.