1Code::TidyAll::Plugin::UJsSeHrinCto(n3t)ributed Perl DocCuomdeen:t:aTtiidoynAll::Plugin::JSHint(3)
2
3
4
6 Code::TidyAll::Plugin::JSHint - Use jshint with tidyall
7
9 version 0.83
10
12 In configuration:
13
14 ; With default settings
15 ;
16 [JSHint]
17 select = static/**/*.js
18
19 ; Specify options inline
20 ;
21 [JSHint]
22 select = static/**/*.js
23 options = bitwise camelcase latedef
24
25 ; or refer to a jshint.json config file in the same directory
26 ;
27 [JSHint]
28 select = static/**/*.js
29 argv = --config $ROOT/jshint.json
30
31 where jshint.json looks like
32
33 {
34 "bitwise": true,
35 "camelcase": true,
36 "latedef": true
37 }
38
40 Runs jshint <http://www.jshint.com/>, a JavaScript validator, and dies
41 if any problems were found.
42
44 See installation options at jshint <http://www.jshint.com/platforms/>.
45 One easy method is to install npm <https://npmjs.org/>, then run
46
47 npm install jshint -g
48
50 This plugin accepts the following configuration options:
51
52 argv
53 Arguments to pass to "jshint".
54
55 cmd
56 The path for the "jshint" command. By default this is just "jshint",
57 meaning that the user's "PATH" will be searched for the command.
58
59 options
60 A whitespace separated string of options, as documented by jshint
61 <http://www.jshint.com/docs/>. These will be written to a temporary
62 config file and passed as "--config" argument.
63
65 Bugs may be submitted at
66 <https://github.com/houseabsolute/perl-code-tidyall/issues>.
67
69 The source code repository for Code-TidyAll can be found at
70 <https://github.com/houseabsolute/perl-code-tidyall>.
71
73 • Jonathan Swartz <swartz@pobox.com>
74
75 • Dave Rolsky <autarch@urth.org>
76
78 This software is copyright (c) 2011 - 2022 by Jonathan Swartz.
79
80 This is free software; you can redistribute it and/or modify it under
81 the same terms as the Perl 5 programming language system itself.
82
83 The full text of the license can be found in the LICENSE file included
84 with this distribution.
85
86
87
88perl v5.36.0 2023-01-20 Code::TidyAll::Plugin::JSHint(3)