0.8.0 • Published 11 years ago
jshint-groups v0.8.0
jshint-groups 
jshint-groups is a wrapper for JSHint which allows check different files by using different options.
Installation
$ npm install -g jshint-groupsNote: jshint declares as peer dependency and can be update separately.
Usage
Find and check all files described in config:
$ jshint-groupsCheck specific files:
$ jshint-groups file1.js file2.jsjshint-groups automatically detects jshint options for each file or ignore it. It can be useful for pre-commit hook.
Configuration file
Configuration file is a js file (nodejs module). By default it has .jshint-groups.js name. Example:
module.exports = {
options: {
undef: true,
unused: true
},
groups: {
client: {
options: {
browser: true
},
includes: [
'client/**/*.js'
],
excludes: [
'client/vendor/**'
]
},
server: {
options: {
node: true
},
includes: [
'server/**'
]
}
}
};Properties
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.
License
MIT License.
0.8.0
11 years ago
0.7.0
11 years ago
0.6.2
11 years ago
0.6.0
12 years ago
0.5.5
12 years ago
0.5.4
12 years ago
0.5.3
12 years ago
0.5.2
12 years ago
0.6.1
12 years ago
0.5.1
12 years ago
0.5.0
12 years ago
0.4.0
12 years ago
0.3.0
12 years ago
0.2.2
12 years ago
0.2.1
12 years ago
0.1.1
12 years ago
0.1.0
12 years ago
0.0.10
12 years ago