ESLint plugin that reproduces TypeScript's strictNullChecks behavior as lint rules, enabling incremental migration from strictNullChecks: false to true. Version 0.1.3 (stable, low activity) depends on typescript >=3.9.4. Unlike native tsconfig strictNullChecks, allows warnings instead of errors and can be gradually applied per file via ESLint config. Requires @typescript-eslint/parser with project option pointing to a separate tsconfig with strictNullChecks: true.
npm install eslint-plugin-strict-null-checksNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure ESLint to gradually enforce strict null checks using a separate tsconfig.
Create tsconfig.strictNullChecks.json and set parserOptions.project to that file.
Add ignorePatterns: ['.eslintrc.js'] to your ESLint config, or include .eslintrc.js in tsconfig.strictNullChecks.json with allowJs: true.
Install @typescript-eslint/parser and set parser in ESLint config.
Use warning level and manually review each violation before committing to fix.
Add ignorePatterns: ['.eslintrc.js'] to ESLint config, or include the file in tsconfig.
Run npm install eslint-plugin-strict-null-checks --save-dev
Add 'strict-null-checks' to plugins array in ESLint config.
Ensure @typescript-eslint/parser is installed and parserOptions.project points to valid tsconfig.