Closed amotmot closed 9 years ago
Is it possible to write a rule to detect that foo is to to bar inside a given object?
Sorry, but I don't understand what you want to detect. Can you rephrase?
Hi @mozfreddyb ,
To me, it seems @gellerb is trying to detect if the "source" or "sink" is an attribute of an object.
@dpnishant & @mozfreddyb I'm new to ESLint but are the above test cases better suited for ESLint?
Also, I updated my initial comment.
Is it possible to write a rule to detect that
bar
is set to'string'
in the below object? Ideally, I would like to detect both below use cases?or
db.connect(dbconnect, { foo: { bar: 'string'} } )