Add context information to duplicate definition warning #815

Open
vrana opened this Issue Jan 14, 2013 · 0 comments

Comments

Projects
None yet
2 participants

vrana commented Jan 14, 2013

We have a linter running JSHint which displays warnings only on modified lines by default. It causes not displaying the "'{a}' is already defined." warning if the duplicate definition is added before the existing definition - the warning isn't triggered on the first occurrence of the definition.

To address this, we need to know all locations of the warning. There's no such abstraction in JSHint for this so passing the location of the first occurrence in the 'data' parameters would work for us too.

@lukeapage lukeapage added Proposal and removed Proposal labels Jun 15, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment