VS Code extension that enforces custom ESLint rules for better code practices.
Features
Detects usage of || and ?? operators
Suggests using tryGetOrDefault() instead
Provides quick fixes to automatically convert operators
Real-time diagnostics as you type
Usage
The extension automatically activates for TypeScript and JavaScript files. When you use || or ?? operators, you'll see a warning suggesting to use tryGetOrDefault() instead.
To fix:
Click on the warning
Select "Convert to tryGetOrDefault()" from the quick fixes
Requirements
Visual Studio Code 1.85.0 or newer
Extension Settings
This extension contributes no additional settings.