👆 You Forget About All Coding Rules? Hinty For VSCode Will Help You!
So, as you may know, I’ve developed the Hinty extension for VSCode. It’s an extension that lets you display inline hints, tips and suggestions based on your code.
For example Chris Young prepared some nice SQL Hinty rules. Here’s one:
{
"regex": "(union\\s*)(select)",
"message": "I can't think a valid reason to use union. You should always be using union all. ",
"modifiers": "sig"
},
This rule checks with regex if a line fits the description, and if yes, displays a message suggesting to use union all.
What’s nice about Hinty is that you can write your own rules easily, and it doesn’t require any changes to the project. You just install Hinty in your VSCode and add rules to the settings JSON file like this:
The extension is language and framework agnostic. It works for everything you can imagine.
But lately I’ve stumbled upon an interesting case that I didn’t know how to handle. In new Angular there’s the feature of creating standalone components. You can create standalone components or module based components.
So I’d like to remind myself, and team members that now we’re switching to standalone ones. And every new component should be standalone.