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

it lint other files that are not eslint configs #70

Closed JusttCallMeMike closed 1 year ago

JusttCallMeMike commented 1 year ago

it shows tons of errors in my ".putout.json" but it is not a eslint config

you probably should change activation event or add config to regext config file path to include / ignore

ghmcadams commented 1 year ago

Thanks @JusttCallMeMike. I originally activated this extension only when the filename matched one of the more common variants of an eslint config file, but had recently expanded it to support any file name (among other reasons, to support shared configs like the one from the airbnb style guide). I do not wish to revert to the previously limiting support model, but I will (for now) add .putout.json to a block-list.

Thanks for letting me know of this issue. I will have a fix released soon.

ghmcadams commented 1 year ago

I just released a new version that should take care of this issue. Please let me know if it is not resolved.

omnichronous commented 1 year ago

I'm also getting errors in my .commitlintrc.js. Maybe we could get a setting like in ErrorLens so we can manage our own exclusions?

"lintLens.excludePatterns": [
    ".commitlintrc.js"
],
philsherry commented 10 months ago

☝🏻 That would be a good solution, if nothing else solves it. I'm still getting this in my .yamllint.yaml files.

lintlens-vs-yamllint