eslint-find-rules
Advanced tools
Comparing version 1.12.0 to 1.13.0
{ | ||
"name": "eslint-find-rules", | ||
"version": "1.12.0", | ||
"version": "1.13.0", | ||
"description": "Find built-in ESLint rules you don't have in your custom config.", | ||
@@ -32,5 +32,6 @@ "main": "src/lib/rule-finder.js", | ||
"cliui": "^3.2.0", | ||
"eslint-rule-documentation": "^1.0.0", | ||
"path-is-absolute": "1.0.0", | ||
"which": "^1.2.8", | ||
"window-size": "^0.2.0", | ||
"which": "^1.2.8", | ||
"yargs": "^4.4.0" | ||
@@ -41,8 +42,8 @@ }, | ||
"codecov": "1.0.1", | ||
"commitizen": "2.8.2", | ||
"commitizen": "2.8.4", | ||
"cz-conventional-changelog": "1.1.6", | ||
"eslint": "3.1.0", | ||
"eslint": "3.2.2", | ||
"eslint-config-kentcdodds": "6.2.0", | ||
"ghooks": "1.3.2", | ||
"mocha": "^2.4.5", | ||
"mocha": "^3.0.1", | ||
"npm-run-all": "2.3.0", | ||
@@ -49,0 +50,0 @@ "nyc": "6.6.1", |
@@ -42,4 +42,8 @@ #!/usr/bin/env node | ||
if (rules.length) { | ||
!argv.verbose && cli.push('\n' + options[option][0] + ' rules\n') | ||
cli.push(rules) | ||
if (argv.verbose) { | ||
cli.verbosePush(rules) | ||
} else { | ||
cli.push('\n' + options[option][0] + ' rules\n') | ||
cli.push(rules) | ||
} | ||
cli.write() | ||
@@ -46,0 +50,0 @@ } else /* istanbul ignore else */ if (option === 'getUnusedRules') { |
@@ -0,1 +1,2 @@ | ||
var getRuleURI = require('eslint-rule-documentation') | ||
var size = require('window-size') | ||
@@ -22,2 +23,10 @@ var availableWidth = size.width || /*istanbul ignore next */ 80 | ||
function verbosePush(output) { | ||
var _output = [].concat(output).map(function(rule) { | ||
return rule + '\t' + getRuleURI(rule).url | ||
}) | ||
push(_output, 1) | ||
} | ||
function write(logger) { | ||
@@ -41,3 +50,4 @@ var _logger = logger || console | ||
push: push, | ||
verbosePush: verbosePush, | ||
write: write, | ||
} |
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
44081
925
7
+ Addedeslint-rule-documentation@1.0.23(transitive)