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

React prop interface: missing lint #76

Closed
BCsabaEngine opened this issue Dec 14, 2023 · 1 comment
Closed

React prop interface: missing lint #76

BCsabaEngine opened this issue Dec 14, 2023 · 1 comment

Comments

@BCsabaEngine
Copy link

I have tried to use this lint rule for react deprecated props. But it does not work:

export type Alpha = {
  /** @deprecated */
  abc: string;
  def: string;
}
const alpha: Alpha = { abc: 'a', def: 'd' }; <-- does not display lint error
alpha.abc = 'b'; <-- display lint error

I will try to make a PR for this in the future.

@gund gund closed this as completed Dec 14, 2023
@gund
Copy link
Owner

gund commented Dec 14, 2023

Duplicate of #13

@gund gund marked this as a duplicate of #13 Dec 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants