Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mojito-cli-jslint

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mojito-cli-jslint

Provide the jslint command for mojito-cli

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

mojito-jslint

Build Status

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

Usage

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

mojito jslint [options] [app|mojit|mojito] [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>

Options

--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

Discussion/Forums

http://developer.yahoo.com/forum/Yahoo-Mojito

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.

Keywords

FAQs

Package last updated on 03 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc