Code::TidyAll::Plugin::JSHint(3pm)

Code::TidyAll::Plugin::JSHint3pm

Use jshint with tidyall

Usage

   In configuration:
   ; With default settings
   ;
   [JSHint]
   select = static/**/*.js
   ; Specify options inline
   ;
   [JSHint]
   select = static/**/*.js
   options = bitwise camelcase latedef
   ; or refer to a jshint.json config file in the same directory
   ;
   [JSHint]
   select = static/**/*.js
   argv = --config $ROOT/jshint.json
   where jshint.json looks like
   {
      "bitwise": true,
      "camelcase": true,
      "latedef": true
   }

Version

version 0.84

Overview

Runs jshint <http://www.jshint.com/>, a JavaScript validator, and dies if any problems were found.

Installation

See installation options at jshint <http://www.jshint.com/platforms/>. One easy method is to install npm <https://npmjs.org/>, then run

    npm install jshint -g

Configuration

This plugin accepts the following configuration options:

argv

Arguments to pass to "jshint".

cmd

The path for the "jshint" command. By default this is just "jshint", meaning that the user's "PATH" will be searched for the command.

options

A whitespace separated string of options, as documented by jshint <http://www.jshint.com/docs/>. These will be written to a temporary config file and passed as "--config" argument.

Support

Bugs may be submitted at <https://github.com/houseabsolute/perl-code-tidyall/issues>.

Source

The source code repository for Code-TidyAll can be found at <https://github.com/houseabsolute/perl-code-tidyall>.

Releases

6 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13

Authors

•

Jonathan Swartz <[email protected]>

•

Dave Rolsky <[email protected]>

From libcode-tidyall-perl 0.84~ds-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.