Skip to content

Tools to help automate progressive adoption of noUncheckedIndexedAccess Typescript rule in the Kapwing repo

Notifications You must be signed in to change notification settings

kapwing/unchecked-index-migration-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A fork of the Vscode team's scripts they used to progressively adopt the strictNullChecks TS rule. The process they used is describe in this blog post. The scripts have been modified for the Kapwing repo so we can migrate to using the noUncheckedIndexedAccess TS rule.

Original README

Scripts to help migrate VS Code to use strict null checks

Usage

$ npm install

index.js

The main script prints of list of files that are eligible for strict null checks. This includes all files that only import files thare are already strict null checked.

$ node index.js /path/to/kapwing/client

autoAdd.js

Very simple script that tries to auto add any eligible file to the tsconfig.uncheckedIndex.json. This iteratively compiles the tsconfig project with just that file added. If there are no errors, it is added to the tsconfig

$ node autoAdd.js /path/to/kapwing/client

About

Tools to help automate progressive adoption of noUncheckedIndexedAccess Typescript rule in the Kapwing repo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%