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.5.0 to 1.6.0

2

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