eslint-plugin-wrapper
Advanced tools
Comparing version 0.0.3-0 to 0.0.3
@@ -240,5 +240,4 @@ class EslintPluginWrapper { | ||
prefixConfigRule([key, val]) { | ||
const matchingPlugin = Object.keys(this.plugins).find(name => | ||
key.startsWith(`${name}/`), | ||
) | ||
const plugins = Object.keys(this.plugins) | ||
const matchingPlugin = plugins.find(name => key.startsWith(`${name}/`)) | ||
return matchingPlugin ? [`${this.pluginName}/${key}`, val] : [key, val] | ||
@@ -245,0 +244,0 @@ } |
{ | ||
"name": "eslint-plugin-wrapper", | ||
"version": "0.0.3-0", | ||
"version": "0.0.3", | ||
"description": "Write project-specific rules, in your own eslint config file", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
25526
281