jshint wrapper which allows check different files by using different options
jshint-groups is a wrapper for JSHint which allows check different files by using different options.
$ npm install -g jshint-groups
jshint declares as peer dependency and can be update separately.
Find and check all files described in config:
Check specific files:
$ jshint-groups file1.js file2.js
jshint-groups automatically detects jshint options for each file or ignore it. It can be useful for pre-commit hook.
Configuration file is a js file (nodejs module). By default it has
.jshint-groups.js name. Example:
moduleexports =options:undef: trueunused: truegroups:client:options:browser: trueincludes:'client/**/*.js'excludes:'client/vendor/**'server:options:node: trueincludes:'server/**';
optionsCommon jshint options. Please see the jshint documentation for more details.
groupsEach group specifies fileset for validation.
optionsJSHint options for group. This options extends common options.
includesList of glob patterns. Please see the minimatch documentation for more details.
excludesList of glob patterns to filter include results.
All properties are optional.