-
Notifications
You must be signed in to change notification settings - Fork 13
Editors
angelozerr edited this page May 29, 2015
·
1 revision
Today several JavaScript editors supports tern-lint :
Here a screenshot with tern lint and CodeMirror :
If you are Eclipse user, you can use the tern lint.js too. See Tern IDE & Validation
See tern-lint.el for more information.
See atom-ternjs for more information.
If you wish to integrate the tern lint with an editor (Vim, Sublime, etc), here the JSON request to post to the tern server :
{
"query": {
"type": "lint",
"file": "test.js",
"files": [
{
"name": "test.js",
"text": "var elt = document.getElementByIdXXX('myId');",
"type": "full"
}
]
}
}
and the JSON response of the tern server :
{
"messages": [
{
"message": "Unknow property 'getElementByIdXXX'",
"from": 19,
"to": 36,
"severity": "warning"
}
]
}