New Rule: Detect potential undefined property #8895
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
triage
An ESLint team member will look at this issue soon
Please describe what the rule should do:
Detect if an undefined object property is being used. This might not always be able to verify the structure of the object, but it would be invaluable to detect problems down the road before they bubble up (this is especially annoying since javascript silently fails and just returns an
undefined
)What category of rule is this?
Provide 2-3 code examples that this rule will warn about:
Why should this rule be included in ESLint (instead of a plugin)?
This would be useful for all developers. Everyone uses objects, but most importantly it would be valuable in places where you define a bunch of constants in an object (to be easily importable in other parts of the program).
Some people have encountered this issue and fixed it in their own community but easier detection would be super valuable. (for example in redux)
The text was updated successfully, but these errors were encountered: