0.1.0 • Published 9 years ago

tern-node-lint v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

tern-node-lint

Build Status

tern-node-lint is a plugin which adds support validation for node require to the JavaSript code intelligence system Tern.

Here a sample with Eclipse :

Node lint

See here for more information about node lint with Eclipse.

Installation

tern-node-lint works with the NodeJS Tern Server, and within a browser.

The easiest way to install tern-node-lint is to use a recent version of npm. In the directory where you installed the tern package, simply run

$ npm install tern-node-lint

Configuration

node-lint tern plugin extends node tern plugin to support validation.

With Node.js

In order for Tern to load the tern-node-express plugin once it is installed, you must include node-lint in the plugins section of your Tern configuration file and node.

Here is a minimal example .tern-project configuration file:

{
  "plugins": {
    "node": {},
    "lint": {},
    "node-lint": {}
  }
}

With WebBrowser (CodeMirror)

See demos/express.html

Structure

The basic structure of the project is given in the following way:

  • node-lint.js the tern plugin.
  • demos/ demos with node lint tern plugin which use CodeMirror.