# @federato/ts-strictify

> Enable gradual TypeScript strict

Latest version **1.3.1** (published 2023-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @federato/ts-strictify
pnpm add @federato/ts-strictify
yarn add @federato/ts-strictify
bun add @federato/ts-strictify
```

Provides the command `ts-strictify`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2023-05-16 |
| First published | 2023-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 4 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| Author | Mark Skelton |
| Maintainers | mskelton |
| Keywords | typescript, strict |

## Links

- npm: https://www.npmjs.com/package/@federato/ts-strictify
- npm.io page: https://npm.io/package/@federato/ts-strictify

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^5.2.0
- [execa](https://npm.io/package/execa.md) ^7.1.1
- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [simple-git](https://npm.io/package/simple-git.md) ^3.18.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.3.1 (latest) — 2023-05-16
- 1.3.0 — 2023-05-16
- 1.2.1 — 2023-05-16
- 1.2.0 — 2023-05-16
- 1.0.0 — 2023-05-16

## README

# @federato/ts-strictify

> Runs [TypeScript](hhttp://www.typescriptlang.org/) in strict mode on your
> changed files.

## How it works

When you start working on a new feature or fixing a bug, you will modify the
code base in one way or another. `ts-strictify` will take a look at these
changes - and only these changes (!) and will complain, if the files you have
touched are not strict compliant.

That is different than TypeScript works. You could check a single file against
the compiler, but the compiler would also look up the imports and the imports of
the imports. Not exactly what you want, when you are looking for incrementally
update path.

## Install

With `npm`:

```bash
npm install --save-dev ts-strictify
```

With `yarn`:

```bash
yarn add --dev ts-strictify
```

With `pnpm`:

```bash
pnpm add --dev ts-strictify
```

## Usage

With `npm`:

```bash
npx ts-strictify
```

With `yarn`:

```bash
yarn ts-strictify
```

With `pnpm`:

```bash
pnpm ts-strictify
```

You can find a list of all available options [`here`](#options).

## Pre-Commit Hook

You can run `ts-strictify` as a pre-commit hook using
[`husky`](https://github.com/typicode/husky). Add the following to your
`package.json` file.

```json
{
  "husky": {
    "hooks": {
      "pre-commit": "ts-strictify"
    }
  }
}
```

## Options

```
Options:
  --help                          Show help                       [boolean]
  --version                       Show version number             [boolean]
  --project                           [string] [default: "./tsconfig.json"]
  --targetBranch                                 [string] [default: "main"]
  --commitedFiles                                 [boolean] [default: true]
  --stagedFiles                                   [boolean] [default: true]
  --modifiedFiles                                 [boolean] [default: true]
  --untrackedFiles                                [boolean] [default: true]
  --createdFiles                                  [boolean] [default: true]
```

## Thanks

Thanks to Christian Schröter for his work on the original ts-strictify project
this fork was based on!

---
_Source: https://npm.io/package/@federato/ts-strictify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
