An ESLint plugin that provides a single rule to disallow null literals, enforcing the use of undefined instead. Version 1.0.2 is the latest stable release. It has no dependencies beyond ESLint (peer dependency >=3.0.0) and is not actively maintained (last release likely older). Differentiators: simple, focused rule for teams preferring undefined over null.
npm install eslint-plugin-no-nullVerified import paths — ran on the pinned version, not inferred.
Shows installation, configuration, and usage of the no-null rule in an ESLint config.
Consider alternatives like ESLint's built-in 'no-restricted-syntax' rule or 'unicorn/no-null'.
Use 'no-restricted-syntax' with a custom selector for more comprehensive null detection.
Run npm install eslint-plugin-no-null --save-dev
Change "no-null/no-null": 2 to "no-null/no-null": "error"