eslint-find-rules
Advanced tools
Comparing version 1.13.1 to 1.13.2
{ | ||
"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', | ||
]) | ||
}) | ||
}) |
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
45136
33
960