Provide the jslint command for mojito-cli

npm install mojito-cli-jslint
80 downloads in the last day
721 downloads in the last week
1 544 downloads in the last month


Build Status

This package provides the jslint command for the mojito-cli. Install it with npm install -g mojito-cli.


Scan files or paths for javascript files, and check their contents with jslint:

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 config.js.

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.


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.

npm loves you