cosmos-explorer/strict-migration-tools
Steve Faulkner 36581fb6d9 Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
..
src Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
.gitignore Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
README.md Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
autoAdd.js Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
index.js Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
package-lock.json Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00
package.json Initial Move from Azure DevOps to GitHub 2020-05-25 21:30:55 -05:00

README.md

Borrowed from f1da7c12fe

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/vscode

autoAdd.js

Very simple script that tries to auto add any eligible file to the tsconfig.strictNullChecks.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/vscode