ternjs / tern_for_sublime

Sublime Text package adding Tern support
MIT License
801 stars 52 forks source link

Lint with tern & sublime #46

Open angelozerr opened 10 years ago

angelozerr commented 10 years ago

@marijnh I have started a lint tern plugin at https://github.com/angelozerr/tern.lint

CodeMirror, Eclipse, Emacs And Atom have implemented marker to support lint. If you are interested you could implement marker with sublime to use the tern plugin lint.

Don't hesitate to contact me if you need some info about the tern lint.

OKNoah commented 4 years ago
Other editors

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"
   }
  ]
 }
}

Not quite a plugin, but nice start.