@smartrecruiters/tsconfig-strict

5.5.0 • Public • Published

@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 version TS version
5.5.x 5.5.x
5.4.x 5.4.x
5.3.x 5.3.x
5.2.x 5.2.x
5.1.x 5.1.x
5.0.x 5.0.x
4.9.x 4.9.x
4.8.x 4.8.x
4.7.x 4.7.x
4.6.x 4.6.x
4.5.x 4.5.x
4.4.x 4.4.x
4.3.x 4.3.x
4.2.x 4.2.x
4.1.x 4.1.x
4.0.x 4.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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
5.5.04latest

Version History

VersionDownloads (Last 7 Days)Published
5.5.04
5.4.01
5.3.10
5.2.10
5.1.10
5.0.30
5.0.10
4.9.80
4.9.6-alpha.00
4.9.50
4.9.30
4.9.10
4.9.00
4.8.10
4.8.00
4.7.00
4.6.06
4.5.00
4.4.00
4.3.11
4.3.00
4.2.00
4.1.00
4.0.00

Package Sidebar

Install

npm i @smartrecruiters/tsconfig-strict

Weekly Downloads

12

Version

5.5.0

License

MIT

Unpacked Size

4.63 kB

Total Files

4

Last publish

Collaborators

  • j.tarnowski
  • bigcreate
  • smartrecruiters-user
  • kiebzak
  • a.khankan.smartrecruiters