Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Code::TidyAll::Plugin::JSHint - Use jshint with tidyall

Authors

       •   Jonathan Swartz <swartz@pobox.com>

       •   Dave Rolsky <autarch@urth.org>

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.

Description

       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

Name

       Code::TidyAll::Plugin::JSHint - Use jshint with tidyall

Source

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

Support

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

Synopsis

          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

See Also