Provide the jslint command for mojito-cli
Want to see pretty graphs? Log in now!
npm install mojito-cli-jslint
|80||downloads in the last day|
|721||downloads in the last week|
|1 544||downloads in the last month|
|Last Published By|
|Version||0.0.3 last updated 11 months ago|
|Keywords||mojito, yui, jslint|
|Dependencies||jslint, mkdirp, npmlog, rimraf, scanfs|
This package provides the
jslint command for the
mojito-cli. Install it with
npm install -g mojito-cli.
mojito jslint [options] [app|mojit] [path(s)]
The default jslint options used, and the patterns of files or directories that will be ignored, are listed in
This command can be used generally, if these defaults are acceptable. In other words:
mojito jslint [optional file(s) or path(s)]
...will find jslint errors, if any, on all files ending in
.js in any of the files or directories specified as arguments. If no paths are specified, the current working directory is assumed.
Type arguments "app" and "mojit" are provided for backwards compatibility. If a type argument of "mojito" is used, the mojito library will be linted. This additional type is provided to support the old behavior
mojito jslint, with no arguments, would act on the mojito library.
To run JSLint on a specific mojit:
mojito jslint mojit <path/to/mojit>
--directory <path> Destination directory of the lint report, if --print -d <path> is not specified. Default is "artifacts/jslint/". The lint report file is named "jslint.html". --exclude <pattern> File or directory patterns to exclude from linting. -e <pattern> This option can be used multiple times. --print Print the lint results, if any, to the console. -p
Licensing and Contributions
This software is free to use under the Yahoo! Inc. BSD license. See LICENSE.txt. To contribute to the Mojito project, please see Contributing.
The Mojito project is a meritocratic, consensus-based community project, which allows anyone to contribute and gain additional responsibilities.