Simply use CTRL+J in gedit to run JSHint using node-jshint.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Note: Please see gedit-icing for more gedit plugins.


Simply use CTRL+J in gedit to to run JSHint using node-jshint.

Note: This only works if you're working inside of a git project (since we use git rev-parse --show-toplevel).

Getting started

  1. Install node-jshint (Note: this requires node and npm, here are quick instructions to install these requirements):

      npm install -g jshint
  2. Enable the External Tools plugin:

    Enable the External Tools plugin

  3. Add a new entry called gedit-node-jshint under Tools -> Manage External Tools:

    dirpath=`git rev-parse --show-toplevel`
    if [ -d "$HOME/bin" ] ; then
    export PATH=$HOME/local/node/bin:$PATH
    cat $1 >> /tmp/jshint.js
    jshint /tmp/jshint.js --reporter $reporter --config $config > /dev/stdout
    rm /tmp/jshint.js
  4. Set External Tool Options as follows:

    Set External Tool Options as follows

  5. Create a jshint directory in your project and download config.json and reporter.js from the node-jshint repo.

    cd /path/to/mygitproject
    mkdir jshint && cd jshint
  6. Open your JavaScript file in gedit, then use the hotkey CTRL+J to run JSHint (see Shell Output tab for its output).

  7. You can also select specific parts of a JavaScript file and use the hotkey.

  8. Configure the config.json and reporter.js files based on your project's needs. See jshint or node-jshint to learn more.