es-tooling / eslint-plugin-depend

An ESLint plugin for suggesting optimisations in choice of dependency, native equivalents, etc.
MIT License
349 stars 5 forks source link

Option to ignore some libraries. #29

Closed eglove closed 4 months ago

eglove commented 4 months ago

While I really love this project, I think we need the option to ignore some cases via config.

"depend/ban-dependencies": ["error", {ignores: ["lodash"]}],

eglove commented 4 months ago

I apologize, I should have just tried this. The error message pointed me in the right direction.

"depend/ban-dependencies": ["error", { allowed: ["lodash"] }],