Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Add option to ignore own deprecations #82

Closed
ST-DDT opened this issue Feb 9, 2024 · 1 comment
Closed

Add option to ignore own deprecations #82

ST-DDT opened this issue Feb 9, 2024 · 1 comment

Comments

@ST-DDT
Copy link

ST-DDT commented Feb 9, 2024

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.

@gund
Copy link
Owner

gund commented Feb 9, 2024

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.

@gund gund closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants