1.1.3 • Published 5 years ago

@sr-net/typescript-config v1.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

TypeScript config files

npm

Structure:

src: Contains all project files

dist: Build folder

typings: Where to put custom types (i.e. typings/global/index.d.ts)

baseUrl setup

The baseUrl is src so anything in it can be required easily. Example:

src
- routes
 - get.ts
- foo
 - bar
  - biz.ts

biz.ts

-import { routes } from '../../../routes/get'
+import { routes } from 'routes/get'

To use

Add the following option to tsconfig.json:

{
  "extends": "./node_modules/@sr-net/typescript-config/tsconfig.json"
}

For tslint, add the following option to tslint.json:

{
  "extends": "./node_modules/@sr-net/typescript-config/tslint.json"
}

Rules can be overwritten by adding them below the extends.

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.2.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago