5.5.0 • Published 6 months ago

@smartrecruiters/tsconfig-strict v5.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@smartrecruiters/tsconfig-strict

Usually it's told that for enabling strict mode for TS just "strict": true should be added in tsconfig.json of your project. Actually it's not fully truth, there are much many additional options and with this package you don't have to check which options should be enabled for absolutely strict mode. Our tsconfig enables all strict rules and keeps your project type-safety.

For Angular projects, please, use config for Angular

Installation

There are just two simple steps for starting using strict mode.

Step 1. Install an appropriate version of the package, it's really simple - the version of the package should be the same as your TS version without patch version

Package versionTS version
5.5.x5.5.x
5.4.x5.4.x
5.3.x5.3.x
5.2.x5.2.x
5.1.x5.1.x
5.0.x5.0.x
4.9.x4.9.x
4.8.x4.8.x
4.7.x4.7.x
4.6.x4.6.x
4.5.x4.5.x
4.4.x4.4.x
4.3.x4.3.x
4.2.x4.2.x
4.1.x4.1.x
4.0.x4.0.x
npm i -D @smartrecruiters/tsconfig-strict@{version}

When TypeScript in your project wil be updated don't forget to update the package as well. But anyway, if the current version of the package is not perfectly matches for the new version of TS, there will be a warning in your terminal.

Step 2. Configure typescript in your project:

Just add "extends": "@smartrecruiters/tsconfig-strict/tsconfig.json", in your main tsconfig file. It's also possible to override any rule that the package provides by default, for example

{
  "extends": "@smartrecruiters/tsconfig-strict/tsconfig.json",
  "compilerOptions": {
    "allowUnusedLabels": false
  }
}

License

MIT

5.5.0

6 months ago

5.4.0

9 months ago

5.3.1

1 year ago

5.2.1

1 year ago

5.1.1

2 years ago

5.0.3

2 years ago

5.0.1

2 years ago

4.9.8

2 years ago

4.9.3

2 years ago

4.9.6-alpha.0

2 years ago

4.9.5

2 years ago

4.9.1

2 years ago

4.9.0

2 years ago

4.8.1

2 years ago

4.8.0

2 years ago

4.7.0

3 years ago

4.6.0

3 years ago

4.5.0

3 years ago

4.4.0

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.0

3 years ago

4.1.0

3 years ago

4.0.0

3 years ago