Code::TidyAll::Plugin::JSHint(3pm) User Contributed Perl Documentation Code::TidyAll::Plugin::JSHint(3pm)

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

version 0.83

   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
   }

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

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

This plugin accepts the following configuration options:

Arguments to pass to "jshint".

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

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.

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

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

This software is copyright (c) 2011 - 2022 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.

The full text of the license can be found in the LICENSE file included with this distribution.

2022-12-31 perl v5.36.0