eslint-import-resolver-node
Advanced tools
Comparing version 0.1.0 to 0.1.1
17
index.js
@@ -12,7 +12,16 @@ var resolve = require('resolve') | ||
function opts(basedir, config) { | ||
return assign( {} | ||
, config | ||
, { basedir: basedir } | ||
) | ||
return assign({}, | ||
config, | ||
{ | ||
basedir: basedir, | ||
packageFilter: packageFilter, | ||
}) | ||
} | ||
function packageFilter(pkg) { | ||
if (pkg['jsnext:main']) { | ||
pkg['main'] = pkg['jsnext:main'] | ||
} | ||
return pkg | ||
} |
{ | ||
"name": "eslint-import-resolver-node", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Node default behavior import resolution plugin for eslint-plugin-import.", | ||
@@ -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
2649
21