gund / eslint-plugin-deprecation

ESLint rule that reports usage of deprecated code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to ignore own deprecations

ST-DDT opened this issue · comments

It would be nice to have an option to ignore own deprecated code.
(Own code = code imported from within the same project and not via dependency)

I would like to turn off deprecation warnings inside my tests, because deprecated code still needs tests, but I would like to know if other libraries that I use in the tests are getting deprecated.

We already discussed this topic in this issue that figuring out which code is considered "yours" and which not is a tricky and is in many cases not fixed definition.

This basically means that we are not going to implement any conditional logic around code ownership etc., to keep this plugin as simple as possible.
If you need to ignore some files in your project - you can configure your eslint rules to apply to the files however you like.

I will be closing this as it's out of scope for this rule.