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 - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

config.js

11

jslint.js

@@ -44,4 +44,11 @@ /*

// add type-specific exclusions, if any
exclude = exclude.concat(config.exclude[type]);
if (config.exclude.hasOwnProperty(type)) {
exclude = exclude.concat(config.exclude[type]);
}
// assume cwd if no paths were specified
if (!sources.length) {
sources = [env.cwd];
}
// exec

@@ -57,3 +64,3 @@ lintifier(sources, exclude, output);

' type "app", "mojit", or "mojito"',
' source mojit name or path',
' source path(s) (required for type "mojit")',
'',

@@ -60,0 +67,0 @@ 'Options:',

8

lib/lintifier.js

@@ -46,3 +46,3 @@ /*

function afterScanning(errcount, total) {
log.debug('scanning done. fs-errors: %d, items: %d', errcount, total);
log.debug(['scan done. fs-errors:', errcount + ', items:', total].join(' '));
doneYet();

@@ -67,3 +67,3 @@ }

var count = offenses.length,
plural = count > 1 ? 's' : '';
plural = count > 1 ? 'errors' : 'error';

@@ -85,3 +85,3 @@ function perOffense(o) {

log.error('%d error%s in %s', count, plural, pathname);
log.error([count, plural, 'in', pathname].join(' '));
offenses.forEach(perOffense);

@@ -99,3 +99,3 @@ }

if (results.ok) {
log.debug('✔ %s', pathname);
log.debug('✔', pathname);
} else {

@@ -102,0 +102,0 @@ tally(pathname, results.errors);

{
"name": "mojito-cli-jslint",
"version": "0.0.2",
"version": "0.0.3",
"description": "Provide the jslint command for mojito-cli",

@@ -5,0 +5,0 @@ "main": "jslint.js",

mojito-jslint
==========
[![Build Status](https://travis-ci.org/yahoo/mojito-cli-jslint.png?branch=rewrite)](https://travis-ci.org/yahoo/mojito-cli-jslint)
[![Build Status](https://travis-ci.org/yahoo/mojito-cli-jslint.png?branch=develop)](https://travis-ci.org/yahoo/mojito-cli-jslint)

@@ -12,3 +12,3 @@ This package provides the `jslint` command for the [`mojito-cli`](https://github.com/yahoo/mojito-cli). Install it with `npm install -g mojito-cli`.

mojito jslint [options] [app|mojit|mojito] [path(s)]
mojito jslint [options] [app|mojit] [path(s)]

@@ -15,0 +15,0 @@ The default jslint options used, and the patterns of files or directories that will be ignored, are listed in `config.js`.

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