Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upJS API Error message should contain `index` position #701
Comments
This comment has been minimized.
This comment has been minimized.
|
We're currently just returning the object that ESLint provides. If you want that additional information, you can read in the file and calculate the index yourself. |
feross
closed this
Dec 3, 2016
This comment has been minimized.
This comment has been minimized.
|
That's ok, for anyone encountered the same problem, I've created a tool for adding |
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
futurist commentedNov 24, 2016
When using JS API, code as below:
the error object of callback result
There's should add aditional
index: 12in the above result, for better locating the error.This will good for editors like
Emacs, togoto-charin source position instead ofline+columncombination.