eslint-find-rules
Advanced tools
Comparing version 1.5.0 to 1.6.0
{ | ||
"name": "eslint-find-rules", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Find built-in ESLint rules you don't have in your custom config.", | ||
@@ -5,0 +5,0 @@ "main": "src/lib/rule-finder.js", |
@@ -11,2 +11,3 @@ #!/usr/bin/env node | ||
n: ['no-error'], | ||
verbose: ['verbose', 'v'], | ||
} | ||
@@ -31,8 +32,8 @@ | ||
rules = ruleFinderMethod() | ||
/* istanbul ignore next */ | ||
argv.verbose && cli.push('\n' + options[option][0] + ' rules\n' + rules.length + ' rules found\n') | ||
if (rules.length) { | ||
cli.push('\n' + options[option][0] + ' rules\n') | ||
!argv.verbose && cli.push('\n' + options[option][0] + ' rules\n') | ||
cli.push(rules) | ||
cli.write() | ||
} else if (option === 'getUnusedRules') { | ||
} else /* istanbul ignore else */ if (option === 'getUnusedRules') { | ||
processExitCode = 0 | ||
@@ -39,0 +40,0 @@ } |
@@ -27,3 +27,3 @@ var assert = require('assert') | ||
console.log = function() { // eslint-disable-line no-console | ||
if (arguments[0].match(/(current|plugin|all\-available|unused)/)) { | ||
if (arguments[0].match(/(current|plugin|all\-available|unused|rules found)/)) { | ||
return | ||
@@ -90,2 +90,9 @@ } | ||
}) | ||
it('logs verbosely', function() { | ||
process.argv[2] = '-c' | ||
process.argv[3] = '-v' | ||
proxyquire('../../src/bin/find', stub) | ||
assert.ok(getCurrentRules.called) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35385
646