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.13.1 to 1.13.2

test/fixtures/eslint-with-plugin-with-no-rules.json

12

package.json
{
"name": "eslint-find-rules",
"version": "1.13.1",
"version": "1.13.2",
"description": "Find built-in ESLint rules you don't have in your custom config.",

@@ -41,9 +41,9 @@ "main": "src/lib/rule-finder.js",

"codecov": "1.0.1",
"commitizen": "2.8.4",
"cz-conventional-changelog": "1.1.6",
"eslint": "3.2.2",
"commitizen": "2.8.6",
"cz-conventional-changelog": "1.2.0",
"eslint": "3.5.0",
"eslint-config-kentcdodds": "6.2.0",
"ghooks": "1.3.2",
"mocha": "^3.0.1",
"npm-run-all": "3.0.0",
"npm-run-all": "3.1.0",
"nyc": "6.6.1",

@@ -55,3 +55,3 @@ "opt-cli": "^1.1.1",

"travis-after-all": "^1.4.4",
"validate-commit-msg": "2.6.1"
"validate-commit-msg": "2.8.0"
},

@@ -58,0 +58,0 @@ "peerDependencies": {

@@ -61,3 +61,3 @@ var path = require('path')

var rules = pluginConfig.rules
var rules = pluginConfig.rules === undefined ? {} : pluginConfig.rules
pluginRules = pluginRules.concat(

@@ -64,0 +64,0 @@ Object.keys(rules).map(function normalizePluginRule(rule) {

@@ -22,2 +22,7 @@ var path = require('path')

},
'eslint-plugin-no-rules': {
processors: {},
'@noCallThru': true,
'@global': true,
},
'@scope/eslint-plugin-scoped-plugin': {

@@ -36,2 +41,3 @@ rules: {

var specifiedFileAbsolute = path.join(process.cwd(), specifiedFileRelative)
var noRulesFile = path.join(process.cwd(), './test/fixtures/eslint-with-plugin-with-no-rules.json')

@@ -216,2 +222,11 @@ describe('rule-finder', function() {

})
it('specifiedFile (absolute path) without rules - plugin rules', function() {
var ruleFinder = getRuleFinder(noRulesFile)
assert.deepEqual(ruleFinder.getPluginRules(), [
'plugin/bar-rule',
'plugin/baz-rule',
'plugin/foo-rule',
])
})
})
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