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

eslint-find-rules

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-find-rules - npm Package Compare versions

Comparing version 1.12.0 to 1.13.0

11

package.json
{
"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,
}
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