ghmcadams / vscode-lintlens

Augment your ESLint rules in Visual Studio Code - Adds metadata beside each ESLint rule.
MIT License
42 stars 9 forks source link

Rule not found with @rushstack/security/no-unsafe-regexp #42

Closed binary64 closed 2 years ago

binary64 commented 3 years ago

Install yarn add -DW @rushstack/eslint-plugin-security npm package,

Then add this to your eslintrc.yml > rules section:

  "@rushstack/security/no-unsafe-regexp":
    - error

And you should see it says "Rule not found", when it is infact there and works.

It works fine for "@rushstack/no-new-null" and yarn add -DW @rushstack/eslint-plugin

ghmcadams commented 3 years ago

Hi @binary64,

Thanks for creating this issue. I came across this myself the other day when trying out many shareable configs at work. The reason this is happening is that my understanding of the structure of a rule name was <plugin name>/<rule name> but this has 2 slashes. If I have time, I can take a look, but I have been really busy lately.

I do welcome PRs though, and if you have time, maybe you can take a look.

ghmcadams commented 2 years ago

Fixed with #44