Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var debug = logger( 'lint-namespace-aliases:async' );
* @param {Callback} clbk - callback to invoke upon completion
* @throws {TypeError} options argument must be an object
* @throws {TypeError} must provide valid options
* @throws {TypeError} last argument must be a function
* @throws {TypeError} callback argument must be a function
*
* @example
* lint( onLint );
Expand Down Expand Up @@ -78,7 +78,7 @@ function lint( options, clbk ) {
cb = options;
}
if ( !isFunction( cb ) ) {
throw new TypeError( format( 'invalid argument. Last argument must be a function. Value: `%s`.', cb ) );
throw new TypeError( format( 'invalid argument. Callback argument must be a function. Value: `%s`.', cb ) );
}
debug( 'Options: %s', JSON.stringify( opts ) );

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Usage: lint-pkg-json-names [options] [<dir>]

Options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ var debug = logger( 'lint:pkg-json-names:async' );
* @param {string} [options.pattern] - glob pattern
* @param {(string|StringArray)} [options.ignore] - glob pattern(s) to exclude
* @param {Callback} clbk - callback to invoke upon completion
* @throws {TypeError} options argument must be an object
* @throws {TypeError} must provide valid options
* @throws {TypeError} callback argument must be a function
*
Expand Down