sourCEntral - mobile manpages

pdf

Code::TidyAll::Plugin::JSHint

NAME

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

VERSION

version 0.55

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
   }

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

CONFIGURATION

argv

Arguments to pass to jshint

cmd

Full path to jshint

options

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

SUPPORT

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

I am also usually active on IRC as ’drolsky’ on "irc://irc.perl.org".

AUTHORS

Jonathan Swartz <swartz AT pobox DOT com>

Dave Rolsky <autarch AT urth DOT org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 − 2016 by Jonathan Swartz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

pdf