eslint-plugin-import
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -6,9 +6,25 @@ # Change Log | ||
## [Unreleased] | ||
## [1.6.0] - 2016-04-25 | ||
### Added | ||
- add [`no-named-as-default-member`] to `warnings` canned config | ||
- add [`no-extraneous-dependencies`] rule ([#241], thanks [@jfmengels]) | ||
- add [`extensions`] rule ([#250], thanks [@lo1tuma]) | ||
- add [`no-nodejs-modules`] rule ([#261], thanks [@jfmengels]) | ||
- add [`order`] rule ([#247], thanks [@jfmengels]) | ||
- consider `resolve.fallback` config option in the webpack resolver ([#254]) | ||
### Changed | ||
- [`imports-first`] now allows directives (i.e. `'use strict'`) strictly before | ||
any imports ([#256], thanks [@lemonmade]) | ||
### Fixed | ||
- [`named`] now properly ignores the source module if a name is re-exported from | ||
an ignored file (i.e. `node_modules`). Also improved the reported error. (thanks to [@jimbolla] for reporting) | ||
- [`no-named-as-default-member`] had a crash on destructuring in loops (thanks for heads up from [@lemonmade]) | ||
## [1.5.0] - 2016-04-18 | ||
### Added | ||
- report resolver errors at the top of the linted file | ||
- add [`no-namespace`] rule | ||
- add [`no-named-as-default-member`] rule | ||
- add [`no-namespace`] rule ([#239], thanks [@singles]) | ||
- add [`no-named-as-default-member`] rule ([#243], thanks [@dmnd]) | ||
@@ -144,3 +160,15 @@ ### Changed | ||
[`no-named-as-default-member`]: ./docs/rules/no-named-as-default-member.md | ||
[`no-extraneous-dependencies`]: ./docs/rules/no-extraneous-dependencies.md | ||
[`extensions`]: ./docs/rules/extensions.md | ||
[`imports-first`]: ./docs/rules/imports-first.md | ||
[`no-nodejs-modules`]: ./docs/rules/no-nodejs-modules.md | ||
[`order`]: ./docs/rules/order.md | ||
[`named`]: ./docs/rules/named.md | ||
[#256]: https://github.com/benmosher/eslint-plugin-import/pull/256 | ||
[#254]: https://github.com/benmosher/eslint-plugin-import/pull/254 | ||
[#247]: https://github.com/benmosher/eslint-plugin-import/pull/247 | ||
[#243]: https://github.com/benmosher/eslint-plugin-import/pull/243 | ||
[#241]: https://github.com/benmosher/eslint-plugin-import/pull/241 | ||
[#239]: https://github.com/benmosher/eslint-plugin-import/pull/239 | ||
[#228]: https://github.com/benmosher/eslint-plugin-import/pull/228 | ||
@@ -161,3 +189,4 @@ [#211]: https://github.com/benmosher/eslint-plugin-import/pull/211 | ||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v1.5.0...HEAD | ||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v1.6.0...HEAD | ||
[1.6.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.5.0...1.6.0 | ||
[1.5.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.4.0...v1.5.0 | ||
@@ -181,1 +210,7 @@ [1.4.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.3.0...v1.4.0 | ||
[@mathieudutour]: https://github.com/mathieudutour | ||
[@singles]: https://github.com/singles | ||
[@jfmengels]: https://github.com/jfmengels | ||
[@lo1tuma]: https://github.com/lo1tuma | ||
[@dmnd]: https://github.com/dmnd | ||
[@lemonmade]: https://github.com/lemonmade | ||
[@jimbolla]: https://github.com/jimbolla |
@@ -7,5 +7,7 @@ /** | ||
plugins: ['import'], | ||
rules: { 'import/no-named-as-default': 1 | ||
, 'import/no-duplicates': 1 | ||
} | ||
rules: { | ||
'import/no-named-as-default': 1, | ||
'import/no-named-as-default-member': 1, | ||
'import/no-duplicates': 1, | ||
}, | ||
} |
@@ -305,5 +305,12 @@ 'use strict'; | ||
ExportMap.prototype.get = function get(name) { | ||
if (this.namespace.has(name)) return this.namespace.get(name); | ||
/** | ||
* ensure that imported name fully resolves. | ||
* @param {[type]} name [description] | ||
* @return {Boolean} [description] | ||
*/ | ||
ExportMap.prototype.hasDeep = function hasDeep(name) { | ||
if (this.namespace.has(name)) return { found: true, path: [this] }; | ||
if (this.reexports.has(name)) { | ||
@@ -315,8 +322,13 @@ var _reexports$get = this.reexports.get(name); | ||
var imported = getImport(); | ||
if (imported == null) return undefined; | ||
// if import is ignored, return explicit 'null' | ||
if (imported == null) return { found: true, path: [this] }; | ||
// safeguard against cycles, only if name matches | ||
if (imported.path === this.path && local === name) return undefined; | ||
if (imported.path === this.path && local === name) return { found: false, path: [this] }; | ||
return imported.get(local); | ||
var deep = imported.hasDeep(local); | ||
deep.path.unshift(this); | ||
return deep; | ||
} | ||
@@ -345,2 +357,52 @@ | ||
var innerValue = innerMap.hasDeep(name); | ||
if (innerValue.found) { | ||
innerValue.path.unshift(this); | ||
return innerValue; | ||
} | ||
} | ||
return { found: false, path: [this] }; | ||
}; | ||
ExportMap.prototype.get = function get(name) { | ||
if (this.namespace.has(name)) return this.namespace.get(name); | ||
if (this.reexports.has(name)) { | ||
var _reexports$get2 = this.reexports.get(name); | ||
var local = _reexports$get2.local; | ||
var getImport = _reexports$get2.getImport; | ||
var imported = getImport(); | ||
// if import is ignored, return explicit 'null' | ||
if (imported == null) return null; | ||
// safeguard against cycles, only if name matches | ||
if (imported.path === this.path && local === name) return undefined; | ||
return imported.get(local); | ||
} | ||
for (var _iterator3 = this.dependencies.values(), _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { | ||
var _ref3; | ||
if (_isArray3) { | ||
if (_i3 >= _iterator3.length) break; | ||
_ref3 = _iterator3[_i3++]; | ||
} else { | ||
_i3 = _iterator3.next(); | ||
if (_i3.done) break; | ||
_ref3 = _i3.value; | ||
} | ||
var dep = _ref3; | ||
var innerMap = dep(); | ||
// todo: report as unresolved? | ||
if (!innerMap) continue; | ||
// safeguard against cycles | ||
if (innerMap.path === this.path) continue; | ||
var innerValue = innerMap.get(name); | ||
@@ -360,5 +422,5 @@ if (innerValue !== undefined) return innerValue; | ||
this.reexports.forEach(function (_ref3, name) { | ||
var getImport = _ref3.getImport; | ||
var local = _ref3.local; | ||
this.reexports.forEach(function (_ref4, name) { | ||
var getImport = _ref4.getImport; | ||
var local = _ref4.local; | ||
return callback.call(thisArg, getImport().get(local), name, _this); | ||
@@ -456,4 +518,4 @@ }); | ||
case 'ObjectPattern': | ||
pattern.properties.forEach(function (_ref4) { | ||
var value = _ref4.value; | ||
pattern.properties.forEach(function (_ref5) { | ||
var value = _ref5.value; | ||
@@ -472,2 +534,2 @@ recursivePatternCapture(value, callback); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvcmUvZ2V0RXhwb3J0cy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztRQTBVZ0I7O0FBMVVoQjs7QUFDQTs7OztBQUVBOztJQUFZOztBQUVaOztBQUNBOztJQUFZOztBQUVaOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUVBOzs7Ozs7OztBQUVBLElBQU0sY0FBYyxzQkFBZDs7Ozs7Ozs7QUFRTixJQUFNLGFBQWEsSUFBSSxNQUFKLENBQVcsZ0NBQVgsQ0FBYjs7SUFFZTtBQUNuQixXQURtQixTQUNuQixDQUFZLElBQVosRUFBa0I7MEJBREMsV0FDRDs7QUFDaEIsU0FBSyxJQUFMLEdBQVksSUFBWixDQURnQjtBQUVoQixTQUFLLFNBQUwsR0FBaUIsc0JBQWpCOztBQUZnQixRQUloQixDQUFLLFNBQUwsR0FBaUIsc0JBQWpCLENBSmdCO0FBS2hCLFNBQUssWUFBTCxHQUFvQixzQkFBcEIsQ0FMZ0I7QUFNaEIsU0FBSyxNQUFMLEdBQWMsRUFBZCxDQU5nQjtHQUFsQjs7QUFEbUIsWUFrQlosbUJBQUksUUFBUSxTQUFTOztBQUUxQixRQUFJLE9BQU8sdUJBQVEsTUFBUixFQUFnQixPQUFoQixDQUFQLENBRnNCO0FBRzFCLFFBQUksUUFBUSxJQUFSLEVBQWMsT0FBTyxJQUFQLENBQWxCOztBQUVBLFdBQU8sVUFBVSxHQUFWLENBQWMsSUFBZCxFQUFvQixPQUFwQixDQUFQLENBTDBCOzs7QUFsQlQsWUEwQlosb0J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ogLy8gZmxvd3R5cGUgd2l0aCBiYWJlbC1lc2xpbnQgcGFyc2VyXG4gICAgICAgICAgICAgIG0ubmFtZXNwYWNlLnNldChuLmRlY2xhcmF0aW9uLmlkLm5hbWUsIGNhcHR1cmVEb2MobikpXG4gICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICBjYXNlICdWYXJpYWJsZURlY2xhcmF0aW9uJzpcbiAgICAgICAgICAgICAgbi5kZWNsYXJhdGlvbi5kZWNsYXJhdGlvbnMuZm9yRWFjaCgoZCkgPT5cbiAgICAgICAgICAgICAgICByZWN1cnNpdmVQYXR0ZXJuQ2FwdHVyZShkLmlkLCBpZCA9PiBtLm5hbWVzcGFjZS5zZXQoaWQubmFtZSwgY2FwdHVyZURvYyhkLCBuKSkpKVxuICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIG4uc3BlY2lmaWVycy5mb3JFYWNoKChzKSA9PiB7XG4gICAgICAgICAgY29uc3QgZXhwb3J0TWV0YSA9IHt9XG4gICAgICAgICAgbGV0IGxvY2FsXG5cbiAgICAgICAgICBzd2l0Y2ggKHMudHlwZSkge1xuICAgICAgICAgICAgY2FzZSAnRXhwb3J0RGVmYXVsdFNwZWNpZmllcic6XG4gICAgICAgICAgICAgIGlmICghbi5zb3VyY2UpIHJldHVyblxuICAgICAgICAgICAgICBsb2NhbCA9ICdkZWZhdWx0J1xuICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgY2FzZSAnRXhwb3J0TmFtZXNwYWNlU3BlY2lmaWVyJzpcbiAgICAgICAgICAgICAgbS5uYW1lc3BhY2Uuc2V0KHMuZXhwb3J0ZWQubmFtZSwgT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydE1ldGEsICduYW1lc3BhY2UnLCB7XG4gICAgICAgICAgICAgICAgZ2V0KCkgeyByZXR1cm4gcmVzb2x2ZUltcG9ydChuKSB9LFxuICAgICAgICAgICAgICB9KSlcbiA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sYXJhdGlvbi50eXBlID09PSAnSWRlbnRpZmllcicpIHtcbiAgICAgICAgICBhZGROYW1lc3BhY2UoZXhwb3J0TWV0YSwgbi5kZWNsYXJhdGlvbilcbiAgICAgICAgfVxuICAgICAgICBtLm5hbWVzcGFjZS5zZXQoJ2RlZmF1bHQnLCBleHBvcnRNZXRhKVxuICAgICAgICByZXR1cm5cbiAgICAgIH1cblxuICAgICAgaWYgKG4udHlwZSA9PT0gJ0V4cG9ydEFsbERlY2xhcmF0aW9uJykge1xuICAgICAgICBsZXQgcmVtb3RlTWFwID0gcmVtb3RlUGF0aChuKVxuICAgICAgICBpZiAocmVtb3RlTWFwID09IG51bGwpIHJldHVyblxuICAgICAgICBtLmRlcGVuZGVuY2llcy5zZXQocmVtb3RlTWFwLCAoKSA9PiBFeHBvcnRNYXAuZm9yKHJlbW90ZU1hcCwgY29udGV4dCkpXG4gICAgICAgIHJldHVyblxuICAgICAgfVxuXG4gICAgICAvLyBjYXB0dXJlIG5hbWVzcGFjZXMgaW4gY2FzZSBvZiBsYXRlciBleHBvcnRcbiAgICAgIGlmIChuLnR5cGUgPT09ICdJbXBvcnREZWNsYXJhdGlvbicpIHtcbiAgICAgICAgbGV0IG5zXG4gICAgICAgIGlmIChuLnNwZWNpZmllcnMuc29tZShzID0+IHMudHlwZSA9PT0gJ0ltcG9ydE5hbWVzcGFjZVNwZWNpZmllcicgJiYgKG5zID0gcykpKSB7XG4gICAgICAgICAgbmFtZXNwYWNlcy5zZXQobnMubG9jYWwubmFtZSwgbilcbiAgICAgICAgfVxuICAgICAgICByZXR1cm5cbiAgICAgIH1cblxuICAgICAgaWYgKG4udHlwZSA9PT0gJ0V4cG9ydE5hbWVkRGVjbGFyYXRpb24nKXtcbiAgICAgICAgLy8gY2FwdHVyZSBkZWNsYXJhdGlvblxuICAgICAgICBpZiAobi5kZWNsYXJhdGlvbiAhPSBudWxsKSB7XG4gICAgICAgICAgc3dpdGNoIChuLmRlY2xhcmF0aW9uLnR5cGUp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VmaW5lUHJvcGVydHkoZXhwb3J0TWV0YSwgJ25hbWVzcGFjZScsIHtcbiAgICAgICAgICAgICAgICBnZXQoKSB7IHJldHVybiByZXNvbHZlSW1wb3J0KG4pIH0sXG4gICAgICAgICAgICAgIH0pKVxuICAgICAgICAgICAgICByZXR1cm5cbiAgICAgICAgICAgIGNhc2UgJ0V4cG9ydFNwZWNpZmllcic6XG4gICAgICAgICAgICAgIGlmICghbi5zb3VyY2UpIHtcbiAgICAgICAgICAgICAgICBtLm5hbWVzcGFjZS5zZXQocy5leHBvcnRlZC5uYW1lLCBhZGROYW1lc3BhY2UoZXhwb3J0TWV0YSwgcy5sb2NhbCkpXG4gICAgICAgICAgICAgICAgcmV0dXJuXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgLy8gZWxzZSBmYWxscyB0aHJvdWdoXG4gICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICBsb2NhbCA9IHMubG9jYWwubmFtZVxuICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgIH1cblxuICAgICAgICAgIC8vIHRvZG86IEpTRG9jXG4gICAgICAgICAgbS5yZWV4cG9ydHMuc2V0KHMuZXhwb3J0ZWQubmFtZSwgeyBsb2NhbCwgZ2V0SW1wb3J0OiAoKSA9PiByZXNvbHZlSW1wb3J0KG4pIH0pXG4gICAgICAgIH0pXG4gICAgICB9XG4gICAgfSlcblxuICAgIHJldHVybiBtXG4gIH1cblxuICAvKipcbiAgICogTm90ZSB0aGF0IHRoaXMgZG9lcyBub3QgY2hlY2sgZXhwbGljaXRseSByZS1leHBvcnRlZCBuYW1lcyBmb3IgZXhpc3RlbmNlXG4gICAqIGluIHRoZSBiYXNlIG5hbWVzcGFjZSwgYnV0IGl0IHdpbGwgZXhwYW5kIGFsbCBgZXhwb3J0ICogZnJvbSAnLi4uJ2AgZXhwb3J0c1xuICAgKiBpZiBub3QgZm91bmQgaW4gdGhlIGV4cGxpY2l0IG5hbWVzcGFjZS5cbiAgICogQ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rpb259IGNhbGxiYWNrXG4gKiBAcmV0dXJuIHt2b2lkfVxuICovXG5leHBvcnQgZnVuY3Rpb24gcmVjdXJzaXZlUGF0dGVybkNhcHR1cmUocGF0dGVybiwgY2FsbGJhY2spIHtcbiAgc3dpdGNoIChwYXR0ZXJuLnR5cGUpIHtcbiAgICBjYXNlICdJZGVudGlmaWVyJzogLy8gYmFzZSBjYXNlXG4gICAgICBjYWxsYmFjayhwYXR0ZXJuKVxuICAgICAgYnJlYWtcblxuICAgIGNhc2UgJ09iamVjdFBhdHRlcm4nOlxuICAgICAgcGF0dGVybi5wcm9wZXJ0aWVzLmZvckVhY2goKHsgdmFsdWUgfSkgPT4ge1xuICAgICAgICByZWN1cnNpdmVQYXR0ZXJuQ2FwdHVyZSh2YWx1ZSwgY2FsbGJhY2spXG4gICAgICB9KVxuICAgICAgYnJlYWtcblxuICAgIGNhc2UgJ0FycmF5UGF0dGVybic6XG4gICAgICBwYXR0ZXJuLmVsZW1lbnRzLmZvckVhY2goKGVsZW1lbnQpID0+IHtcbiAgICAgICAgaWYgKGVsZW1lbnQgPT0gbnVsbCkgcmV0dXJuXG4gICAgICAgIHJlY3Vyc2l2ZVBhdHRlcm5DYXB0dXJlKGVsZW1lbnQsIGNhbGxiYWNrKVxuICAgICAgfSlcbiAgICAgIGJyZWFrXG4gIH1cbn1cbiJdfQ== |
@@ -11,2 +11,3 @@ 'use strict'; | ||
'export': require('./rules/export'), | ||
'extensions': require('./rules/extensions'), | ||
@@ -20,2 +21,5 @@ 'no-named-as-default': require('./rules/no-named-as-default'), | ||
'imports-first': require('./rules/imports-first'), | ||
'no-extraneous-dependencies': require('./rules/no-extraneous-dependencies'), | ||
'no-nodejs-modules': require('./rules/no-nodejs-modules'), | ||
'order': require('./rules/order'), | ||
@@ -33,2 +37,2 @@ // metadata-based | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIj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ID0ge1xuICAnZXJyb3JzJzogcmVxdWlyZSgnLi4vY29uZmlnL2Vycm9ycycpLFxuICAnd2FybmluZ3MnOiByZXF1aXJlKCcuLi9jb25maWcvd2FybmluZ3MnKSxcblxuICAvLyBzaGhoaC4uLiB3b3JrIGluIHByb2dyZXNzIFwic2VjcmV0XCIgcnVsZXNcbiAgJ3N0YWdlLTAnOiByZXF1aXJlKCcuLi9jb25maWcvc3RhZ2UtMCcpLFxufVxuIl19 |
'use strict'; | ||
module.exports = function (context) { | ||
function isPossibleDirective(node) { | ||
return node.type === 'ExpressionStatement' && node.expression.type === 'Literal' && typeof node.expression.value === 'string'; | ||
} | ||
return { | ||
@@ -8,5 +12,12 @@ 'Program': function Program(n) { | ||
absoluteFirst = context.options[0] === 'absolute-first'; | ||
var last = -1, | ||
var nonImportCount = 0, | ||
anyExpressions = false, | ||
anyRelative = false; | ||
body.forEach(function (node, i) { | ||
body.forEach(function (node) { | ||
if (!anyExpressions && isPossibleDirective(node)) { | ||
return; | ||
} | ||
anyExpressions = true; | ||
if (node.type === 'ImportDeclaration') { | ||
@@ -23,3 +34,3 @@ if (absoluteFirst) { | ||
} | ||
if (i !== ++last) { | ||
if (nonImportCount > 0) { | ||
context.report({ | ||
@@ -30,2 +41,4 @@ node: node, | ||
} | ||
} else { | ||
nonImportCount++; | ||
} | ||
@@ -36,2 +49,2 @@ }); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL2ltcG9ydHMtZmlyc3QuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAsR0FBaUIsVUFBVSxPQUFWLEVBQW1CO0FBQ2xDLFNBQU87QUFDTCxlQUFXLGlCQUFVLENBQVYsRUFBYTtBQUN0QixVQUFNLE9BQU8sRUFBRSxJQUFGO1VBQ1AsZ0JBQWdCLFFBQVEsT0FBUixDQUFnQixDQUFoQixNQUF1QixnQkF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vZGUsIGkpe1xuICAgICAgICBpZiAobm9kZS50eXBlID09PSAnSW1wb3J0RGVjbGFyYXRpb24nKSB7XG4gICAgICAgICAgaWYgKGFic29sdXRlRmlyc3QpIHtcbiAgICAgICAgICAgIGlmICgvXlxcLi8udGVzdChub2RlLnNvdXJjZS52YWx1ZSkpIHtcbiAgICAgICAgICAgICAgYW55UmVsYXRpdmUgPSB0cnVlXG4gICAgICAgICAgICB9IGVsc2UgaWYgKGFueVJlbGF0aXZlKSB7XG4gICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgICBub2RlOiBub2RlLnNvdXJjZSxcbiAgICAgICAgICAgICAgICBtZXNzYWdlOiAnQWJzb2x1dGUgaW1wb3J0cyBzaG91bGQgY29tZSBiZWZvcmUgcmVsYXRpdmUgaW1wb3J0cy4nLFxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAoaSAhPT0gKytsYXN0KSB7XG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgIG1lc3NhZ2U6ICdJbXBvcnQgaW4gYm9keSBvZiBtb2R1bGU7IHJlb3JkZXIgdG8gdG9wLicsXG4gICAgICAgICAgICB9KVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSlcbiAgICB9LFxuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL2ltcG9ydHMtZmlyc3QuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxPQUFPLE9BQVAsR0FBaUIsVUFBVSxPQUFWLEVBQW1CO0FBQ2xDLFdBQVMsbUJBQVQsQ0FBOEIsSUFBOUIsRUFBb0M7QUFDbEMsV0FBTyxLQUFLLElBQUwsS0FBYyxxQkFBZCxJQUNMLEtBQ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HtcbiAgICAgICAgICAgICAgYW55UmVsYXRpdmUgPSB0cnVlXG4gICAgICAgICAgICB9IGVsc2UgaWYgKGFueVJlbGF0aXZlKSB7XG4gICAgICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgICAgICBub2RlOiBub2RlLnNvdXJjZSxcbiAgICAgICAgICAgICAgICBtZXNzYWdlOiAnQWJzb2x1dGUgaW1wb3J0cyBzaG91bGQgY29tZSBiZWZvcmUgcmVsYXRpdmUgaW1wb3J0cy4nLFxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAobm9uSW1wb3J0Q291bnQgPiAwKSB7XG4gICAgICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICAgIG1lc3NhZ2U6ICdJbXBvcnQgaW4gYm9keSBvZiBtb2R1bGU7IHJlb3JkZXIgdG8gdG9wLicsXG4gICAgICAgICAgICB9KVxuICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBub25JbXBvcnRDb3VudCsrXG4gICAgICAgIH1cbiAgICAgIH0pXG4gICAgfSxcbiAgfVxufVxuIl19 |
'use strict'; | ||
var _path = require('path'); | ||
var path = _interopRequireWildcard(_path); | ||
var _getExports = require('../core/getExports'); | ||
@@ -9,2 +13,4 @@ | ||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } | ||
module.exports = function (context) { | ||
@@ -31,4 +37,14 @@ function checkSpecifiers(key, type, node) { | ||
if (!imports.get(im[key].name)) { | ||
context.report(im[key], im[key].name + ' not found in \'' + node.source.value + '\''); | ||
var deepLookup = imports.hasDeep(im[key].name); | ||
if (!deepLookup.found) { | ||
if (deepLookup.path.length > 1) { | ||
var deepPath = deepLookup.path.map(function (i) { | ||
return path.relative(path.dirname(context.getFilename()), i.path); | ||
}).join(' -> '); | ||
context.report(im[key], im[key].name + ' not found via ' + deepPath); | ||
} else { | ||
context.report(im[key], im[key].name + ' not found in \'' + node.source.value + '\''); | ||
} | ||
} | ||
@@ -44,2 +60,2 @@ }); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25hbWVkLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUE7Ozs7OztBQUVBLE9BQU8sT0FBUCxHQUFpQixVQUFVLE9BQVYsRUFBbUI7QUFDbEMsV0FBUyxlQUFULENBQXlCLEdBQXpCLEVBQThCLElBQTlCLEVBQW9DLElBQXBDLEVBQTBDO0FBQ3hDLFFBQUksS0FBSyxNQUFMLElBQWUsSUFBZixFQUFxQixPQUF6Qjs7QUFEd0MsUUFHcEMsQ0FBQyxLQUFLLFVBQUwsQ0FDRSxJQURGLENBQ08sVUFBVSxFQUFWLEVBQWM7QUFBRSxhQUFPLEdBQUcsSUFBSCxLQUFZLElBQVosQ0FBVDtLQUFkLENBRFIsRUFDb0Q7QUFDdEQ7QUFEc0QsS0FEeEQ7O0FBS0EsUUFBTSxVQUFVLHFCQUFRLEdBQVIsQ0FBWSxLQUFLLE1BQUwsQ0FBWSxLQUFaLEVBQW1CLE9BQS9CLENBQVYsQ0FSa0M7QUFTeEMsUUFBSSxXQUFXLElBQVgsRUFBaUIsT0FBckI7O0FBRUEsUUFBSSxRQUFRLE1BQVIsQ0FBZSxNQUFmLEVBQXVCO0FBQ3pCLGNBQVEsWUFBUixDQUFxQixPQUFyQixFQUE4QixJQUE5QixFQUR5QjtBQUV6QixhQUZ5QjtLQUEzQjs7QUFLQSxTQUFLLFVBQUwsQ0FBZ0IsT0FBaEIsQ0FBd0IsVUFBVSxFQUFWLEVBQWM7QUFDcEMsVUFBSSxHQUFHLElBQUgsS0FBW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kZS5zb3VyY2UudmFsdWUsIGNvbnRleHQpXG4gICAgaWYgKGltcG9ydHMgPT0gbnVsbCkgcmV0dXJuXG5cbiAgICBpZiAoaW1wb3J0cy5lcnJvcnMubGVuZ3RoKSB7XG4gICAgICBpbXBvcnRzLnJlcG9ydEVycm9ycyhjb250ZXh0LCBub2RlKVxuICAgICAgcmV0dXJuXG4gICAgfVxuXG4gICAgbm9kZS5zcGVjaWZpZXJzLmZvckVhY2goZnVuY3Rpb24gKGltKSB7XG4gICAgICBpZiAoaW0udHlwZSAhPT0gdHlwZSkgcmV0dXJuXG5cbiAgICAgIGlmICghaW1wb3J0cy5nZXQoaW1ba2V5XS5uYW1lKSkge1xuICAgICAgICBjb250ZXh0LnJlcG9ydChpbVtrZXldLFxuICAgICAgICAgIGltW2tleV0ubmFtZSArICcgbm90IGZvdW5kIGluIFxcJycgKyBub2RlLnNvdXJjZS52YWx1ZSArICdcXCcnKVxuICAgICAgfVxuICAgIH0pXG4gIH1cblxuICByZXR1cm4ge1xuICAgICdJbXBvcnREZWNsYXJhdGlvbic6IGNoZWNrU3BlY2lmaWVycy5iaW5kKCBudWxsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsICdpbXBvcnRlZCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgJ0ltcG9ydFNwZWNpZmllcidcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICksXG5cbiAgICAnRXhwb3J0TmFtZWREZWNsYXJhdGlvbic6IGNoZWNrU3BlY2lmaWVycy5iaW5kKCBudWxsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICwgJ2xvY2FsJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsICdFeHBvcnRTcGVjaWZpZXInXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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ydChpbVtrZXldLFxuICAgICAgICAgICAgYCR7aW1ba2V5XS5uYW1lfSBub3QgZm91bmQgdmlhICR7ZGVlcFBhdGh9YClcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBjb250ZXh0LnJlcG9ydChpbVtrZXldLFxuICAgICAgICAgICAgaW1ba2V5XS5uYW1lICsgJyBub3QgZm91bmQgaW4gXFwnJyArIG5vZGUuc291cmNlLnZhbHVlICsgJ1xcJycpXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9KVxuICB9XG5cbiAgcmV0dXJuIHtcbiAgICAnSW1wb3J0RGVjbGFyYXRpb24nOiBjaGVja1NwZWNpZmllcnMuYmluZCggbnVsbFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCAnaW1wb3J0ZWQnXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsICdJbXBvcnRTcGVjaWZpZXInXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuXG4gICAgJ0V4cG9ydE5hbWVkRGVjbGFyYXRpb24nOiBjaGVja1NwZWNpZmllcnMuYmluZCggbnVsbFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAsICdsb2NhbCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLCAnRXhwb3J0U3BlY2lmaWVyJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICApLFxuICB9XG5cbn1cbiJdfQ== |
@@ -64,2 +64,4 @@ 'use strict'; | ||
function handleDestructuringAssignment(node) { | ||
if (!node.init) return; | ||
var isDestructure = node.id.type === 'ObjectPattern' && node.init.type === 'Identifier'; | ||
@@ -126,2 +128,2 @@ if (!isDestructure) return; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY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lsZUltcG9ydCA9PSBudWxsKSByZXR1cm5cblxuICAgICAgZm9yIChjb25zdCB7cHJvcE5hbWUsIG5vZGV9IG9mIGxvb2t1cHMpIHtcbiAgICAgICAgaWYgKCFmaWxlSW1wb3J0LmV4cG9ydE1hcC5uYW1lc3BhY2UuaGFzKHByb3BOYW1lKSkgY29udGludWVcblxuICAgICAgICBjb250ZXh0LnJlcG9ydCh7XG4gICAgICAgICAgbm9kZSxcbiAgICAgICAgICBtZXNzYWdlOiAoXG4gICAgICAgICAgICBgQ2F1dGlvbjogXFxgJHtvYmplY3ROYW1lfVxcYCBhbHNvIGhhcyBhIG5hbWVkIGV4cG9ydCBgICtcbiAgICAgICAgICAgIGBcXGAke3Byb3BOYW1lfVxcYC4gQ2hlY2sgaWYgeW91IG1lYW50IHRvIHdyaXRlIGAgK1xuICAgICAgICAgICAgYFxcYGltcG9ydCB7JHtwcm9wTmFtZX19IGZyb20gJyR7ZmlsZUltcG9ydC5zb3VyY2VQYXRofSdcXGAgYCArXG4gICAgICAgICAgICAnaW5zdGVhZC4nXG4gICAgICAgICAgKSxcbiAgICAgICAgfSlcbiAgICAgIH1cbiAgICB9KVxuICB9XG5cbiAgcmV0dXJuIHtcbiAgICAnSW1wb3J0RGVmYXVsdFNwZWNpZmllcic6IGhhbmRsZUltcG9ydERlZmF1bHQsXG4gICAgJ01lbWJlckV4cHJlc3Npb24nOiBoYW5kbGVQcm9wTG9va3VwLFxuICAgICdWYXJpYWJsZURlY2xhcmF0b3InOiBoYW5kbGVEZXN0cnVjdHVyaW5nQXNzaWdubWVudCxcbiAgICAnUHJvZ3JhbTpleGl0JzogaGFuZGxlUHJvZ3JhbUV4aXQsXG4gIH1cbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vLW5hbWVkLWFzLWRlZmF1bHQtbWVtYmVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O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cmV0dXJuXG5cbiAgICAgIGZvciAoY29uc3Qge3Byb3BOYW1lLCBub2RlfSBvZiBsb29rdXBzKSB7XG4gICAgICAgIGlmICghZmlsZUltcG9ydC5leHBvcnRNYXAubmFtZXNwYWNlLmhhcyhwcm9wTmFtZSkpIGNvbnRpbnVlXG5cbiAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgbWVzc2FnZTogKFxuICAgICAgICAgICAgYENhdXRpb246IFxcYCR7b2JqZWN0TmFtZX1cXGAgYWxzbyBoYXMgYSBuYW1lZCBleHBvcnQgYCArXG4gICAgICAgICAgICBgXFxgJHtwcm9wTmFtZX1cXGAuIENoZWNrIGlmIHlvdSBtZWFudCB0byB3cml0ZSBgICtcbiAgICAgICAgICAgIGBcXGBpbXBvcnQgeyR7cHJvcE5hbWV9fSBmcm9tICcke2ZpbGVJbXBvcnQuc291cmNlUGF0aH0nXFxgIGAgK1xuICAgICAgICAgICAgJ2luc3RlYWQuJ1xuICAgICAgICAgICksXG4gICAgICAgIH0pXG4gICAgICB9XG4gICAgfSlcbiAgfVxuXG4gIHJldHVybiB7XG4gICAgJ0ltcG9ydERlZmF1bHRTcGVjaWZpZXInOiBoYW5kbGVJbXBvcnREZWZhdWx0LFxuICAgICdNZW1iZXJFeHByZXNzaW9uJzogaGFuZGxlUHJvcExvb2t1cCxcbiAgICAnVmFyaWFibGVEZWNsYXJhdG9yJzogaGFuZGxlRGVzdHJ1Y3R1cmluZ0Fzc2lnbm1lbnQsXG4gICAgJ1Byb2dyYW06ZXhpdCc6IGhhbmRsZVByb2dyYW1FeGl0LFxuICB9XG59XG4iXX0= |
{ | ||
"name": "eslint-plugin-import", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "Import with sanity.", | ||
@@ -68,3 +68,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"doctrine": "1.2.0", | ||
"builtin-modules": "^1.1.1", | ||
"doctrine": "1.2.x", | ||
"es6-map": "^0.1.3", | ||
@@ -74,4 +75,8 @@ "es6-set": "^0.1.4", | ||
"eslint-import-resolver-node": "^0.2.0", | ||
"object-assign": "^4.0.1" | ||
"lodash.cond": "^4.3.0", | ||
"lodash.endswith": "^4.0.1", | ||
"lodash.find": "^4.3.0", | ||
"object-assign": "^4.0.1", | ||
"pkg-up": "^1.0.0" | ||
} | ||
} |
@@ -32,2 +32,3 @@ # eslint-plugin-import | ||
* Report imported names marked with `@deprecated` documentation tag ([`no-deprecated`]) | ||
* Forbid the use of extraneous packages ([`no-extraneous-dependencies`]) | ||
@@ -38,2 +39,3 @@ [`export`]: ./docs/rules/export.md | ||
[`no-deprecated`]: ./docs/rules/no-deprecated.md | ||
[`no-extraneous-dependencies`]: ./docs/rules/no-extraneous-dependencies.md | ||
@@ -44,5 +46,7 @@ **Module systems:** | ||
* Report AMD `require` and `define` calls. ([`no-amd`]) | ||
* No Node.js builtin modules. ([`no-nodejs-modules`]) | ||
[`no-commonjs`]: ./docs/rules/no-commonjs.md | ||
[`no-amd`]: ./docs/rules/no-amd.md | ||
[`no-nodejs-modules`]: ./docs/rules/no-nodejs-modules.md | ||
@@ -54,2 +58,4 @@ **Style guide:** | ||
* Report namespace imports ([`no-namespace`]) | ||
* Ensure consistent use of file extension within the import path ([`extensions`]) | ||
* Enforce a convention in module import order ([`order`]) | ||
@@ -59,2 +65,4 @@ [`imports-first`]: ./docs/rules/imports-first.md | ||
[`no-namespace`]: ./docs/rules/no-namespace.md | ||
[`extensions`]: ./docs/rules/extensions.md | ||
[`order`]: ./docs/rules/order.md | ||
@@ -61,0 +69,0 @@ |
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
239949
38
1985
278
12
7
+ Addedbuiltin-modules@^1.1.1
+ Addedlodash.cond@^4.3.0
+ Addedlodash.endswith@^4.0.1
+ Addedlodash.find@^4.3.0
+ Addedpkg-up@^1.0.0
+ Addedbuiltin-modules@1.1.1(transitive)
+ Addeddoctrine@1.2.3(transitive)
+ Addedfind-up@1.1.2(transitive)
+ Addedlodash.cond@4.5.2(transitive)
+ Addedlodash.endswith@4.2.1(transitive)
+ Addedlodash.find@4.6.0(transitive)
+ Addedpath-exists@2.1.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedpkg-up@1.0.0(transitive)
- Removeddoctrine@1.2.01.5.0(transitive)
- Removedesutils@1.1.6(transitive)
Updateddoctrine@1.2.x