eslint-plugin-import
Advanced tools
Comparing version 2.0.1 to 2.1.0
@@ -9,2 +9,14 @@ # Change Log | ||
## [2.1.0] - 2016-11-02 | ||
### Added | ||
- Add [`no-named-default`] rule: style-guide rule to report use of unnecessarily named default imports | ||
- [`no-extraneous-dependencies`]: check globs against CWD + absolute path ([#602] + [#630], thanks [@ljharb]) | ||
### Fixed | ||
- [`prefer-default-export`] handles flow `export type` ([#484]) | ||
- [`prefer-default-export`] handles re-exported default exports ([#609]) | ||
- Fix crash when using [`newline-after-import`] with decorators ([#592]) | ||
- Properly report [`newline-after-import`] when next line is a decorator | ||
- Fixed documentation for the default values for the [`order`] rule ([#601]) | ||
## [2.0.1] - 2016-10-06 | ||
@@ -332,2 +344,3 @@ ### Fixed | ||
[`no-namespace`]: ./docs/rules/no-namespace.md | ||
[`no-named-default`]: ./docs/rules/no-named-default.md | ||
[`no-named-as-default`]: ./docs/rules/no-named-as-default.md | ||
@@ -356,2 +369,3 @@ [`no-named-as-default-member`]: ./docs/rules/no-named-as-default-member.md | ||
[#630]: https://github.com/benmosher/eslint-plugin-import/pull/630 | ||
[#586]: https://github.com/benmosher/eslint-plugin-import/pull/586 | ||
@@ -405,6 +419,10 @@ [#578]: https://github.com/benmosher/eslint-plugin-import/pull/578 | ||
[#609]: https://github.com/benmosher/eslint-plugin-import/issues/609 | ||
[#604]: https://github.com/benmosher/eslint-plugin-import/issues/604 | ||
[#602]: https://github.com/benmosher/eslint-plugin-import/issues/602 | ||
[#601]: https://github.com/benmosher/eslint-plugin-import/issues/601 | ||
[#592]: https://github.com/benmosher/eslint-plugin-import/issues/592 | ||
[#577]: https://github.com/benmosher/eslint-plugin-import/issues/577 | ||
[#570]: https://github.com/benmosher/eslint-plugin-import/issues/570 | ||
[#567]: https://github.com/benmosher/eslint-plugin-import/issues/567 | ||
[#567]: https://github.com/benmosher/eslint-plugin-import/issues/567∏ | ||
[#566]: https://github.com/benmosher/eslint-plugin-import/issues/566 | ||
@@ -455,3 +473,4 @@ [#545]: https://github.com/benmosher/eslint-plugin-import/issues/545 | ||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v2.0.1...HEAD | ||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v2.1.0...HEAD | ||
[2.1.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.0.1...v2.1.0 | ||
[2.0.1]: https://github.com/benmosher/eslint-plugin-import/compare/v2.0.0...v2.0.1 | ||
@@ -458,0 +477,0 @@ [2.0.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.16.0...v2.0.0 |
@@ -18,2 +18,3 @@ 'use strict'; | ||
'no-named-default': require('./rules/no-named-default'), | ||
'no-named-as-default': require('./rules/no-named-as-default'), | ||
@@ -42,3 +43,3 @@ 'no-named-as-default-member': require('./rules/no-named-as-default-member'), | ||
// deprecated aliases to rules | ||
'imports-first': require('./rules/first') | ||
'imports-first': require('./rules/imports-first') | ||
}; | ||
@@ -60,2 +61,2 @@ | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbInJ1bGVzIiwicmVxdWlyZSIsImNvbmZpZ3MiXSwibWFwcGluZ3MiOiI7Ozs7O0FBQU8sTUFBTUEsd0JBQVE7QUFDbkIsbUJBQWlCQyxRQUFRLHVCQUFSLENBREU7QUFFbkIsV0FBU0EsUUFBUSxlQUFSLENBRlU7QUFHbkIsYUFBV0EsUUFBUSxpQkFBUixDQUhRO0FBSW5CLGVBQWFBLFFBQVEsbUJBQVIsQ0FKTTtBQUtuQixrQkFBZ0JBLFFBQVEsc0JBQVIsQ0FMRztBQU1uQixZQUFVQSxRQUFRLGdCQUFSLENBTlM7QUFPbkIsd0JBQXNCQSxRQUFRLDRCQUFSLENBUEg7QUFRbkIsZ0JBQWNBLFFBQVEsb0JBQVIsQ0FSSztBQVNuQix5QkFBdUJBLFFBQVEsNkJBQVIsQ0FUSjtBQVVuQix5QkFBdU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4vY29uZmlnL3dhcm5pbmdzJyksXG5cbiAgLy8gc2hoaGguLi4gd29yayBpbiBwcm9ncmVzcyBcInNlY3JldFwiIHJ1bGVzXG4gICdzdGFnZS0wJzogcmVxdWlyZSgnLi4vY29uZmlnL3N0YWdlLTAnKSxcblxuICAvLyB1c2VmdWwgc3R1ZmYgZm9yIGZvbGtzIHVzaW5nIHZhcmlvdXMgZW52aXJvbm1lbnRzXG4gICdyZWFjdCc6IHJlcXVpcmUoJy4uL2NvbmZpZy9yZWFjdCcpLFxuICAncmVhY3QtbmF0aXZlJzogcmVxdWlyZSgnLi4vY29uZmlnL3JlYWN0LW5hdGl2ZScpLFxuICAnZWxlY3Ryb24nOiByZXF1aXJlKCcuLi9jb25maWcvZWxlY3Ryb24nKSxcbn1cbiJdfQ== |
@@ -51,2 +51,6 @@ 'use strict'; | ||
function isClassWithDecorator(node) { | ||
return node.type === 'ClassDeclaration' && node.decorators && node.decorators.length; | ||
} | ||
module.exports = { | ||
@@ -61,2 +65,6 @@ meta: { | ||
function checkForNewLine(node, nextNode, type) { | ||
if (isClassWithDecorator(nextNode)) { | ||
nextNode = nextNode.decorators[0]; | ||
} | ||
if (getLineDifference(node, nextNode) < 2) { | ||
@@ -130,2 +138,3 @@ let column = node.loc.start.column; | ||
ObjectExpression: incrementLevel, | ||
Decorator: incrementLevel, | ||
'FunctionDeclaration:exit': decrementLevel, | ||
@@ -135,6 +144,7 @@ 'FunctionExpression:exit': decrementLevel, | ||
'BlockStatement:exit': decrementLevel, | ||
'ObjectExpression:exit': decrementLevel | ||
'ObjectExpression:exit': decrementLevel, | ||
'Decorator:exit': decrementLevel | ||
}; | ||
} | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25ld2xpbmUtYWZ0ZXItaW1wb3J0LmpzIl0sIm5hbWVzIjpbImxvZyIsImNvbnRhaW5zTm9kZU9yRXF1YWwiLCJvdXRlck5vZGUiLCJ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gICAgICAgIG5leHROb2RlID0gbmV4dE5vZGUuZGVjb3JhdG9yc1swXVxuICAgICAgfVxuXG4gICAgICBpZiAoZ2V0TGluZURpZmZlcmVuY2Uobm9kZSwgbmV4dE5vZGUpIDwgMikge1xuICAgICAgICBsZXQgY29sdW1uID0gbm9kZS5sb2Muc3RhcnQuY29sdW1uXG5cbiAgICAgICAgaWYgKG5vZGUubG9jLnN0YXJ0LmxpbmUgIT09IG5vZGUubG9jLmVuZC5saW5lKSB7XG4gICAgICAgICAgY29sdW1uID0gMFxuICAgICAgICB9XG5cbiAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgIGxvYzoge1xuICAgICAgICAgICAgbGluZTogbm9kZS5sb2MuZW5kLmxpbmUsXG4gICAgICAgICAgICBjb2x1bW4sXG4gICAgICAgICAgfSxcbiAgICAgICAgICBtZXNzYWdlOiBgRXhwZWN0ZWQgZW1wdHkgbGluZSBhZnRlciAke3R5cGV9IHN0YXRlbWVudCBub3QgZm9sbG93ZWQgYnkgYW5vdGhlciAke3R5cGV9LmAsXG4gICAgICAgIH0pXG4gICAgICB9XG4gICAgfVxuXG4gICAgZnVuY3Rpb24gaW5jcmVtZW50TGV2ZWwoKSB7XG4gICAgICBsZXZlbCsrXG4gICAgfVxuICAgIGZ1bmN0aW9uIGRlY3JlbWVudExldmVsKCkge1xuICAgICAgbGV2ZWwtLVxuICAgIH1cblxuICAgIHJldHVybiB7XG4gICAgICBJbXBvcnREZWNsYXJhdGlvbjogZnVuY3Rpb24gKG5vZGUpIHtcbiAgICAgICAgY29uc3QgeyBwYXJlbnQgfSA9IG5vZGVcbiAgICAgICAgY29uc3Qgbm9kZVBvc2l0aW9uID0gcGFyZW50LmJvZHkuaW5kZXhPZihub2RlKVxuICAgICAgICBjb25zdCBuZXh0Tm9kZSA9IHBhcmVudC5ib2R5W25vZGVQb3NpdGlvbiArIDFdXG5cbiAgICAgICAgaWYgKG5leHROb2RlICYmIG5leHROb2RlLnR5cGUgIT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c2lvbjpleGl0JzogZGVjcmVtZW50TGV2ZWwsXG4gICAgICAnRGVjb3JhdG9yOmV4aXQnOiBkZWNyZW1lbnRMZXZlbCxcbiAgICB9XG4gIH0sXG59XG4iXX0= |
@@ -7,2 +7,6 @@ 'use strict'; | ||
var _path = require('path'); | ||
var _path2 = _interopRequireDefault(_path); | ||
var _pkgUp = require('pkg-up'); | ||
@@ -92,3 +96,3 @@ | ||
// Array of globs. | ||
return config.some(c => (0, _minimatch2.default)(filename, c)); | ||
return config.some(c => (0, _minimatch2.default)(filename, c) || (0, _minimatch2.default)(filename, _path2.default.join(process.cwd(), c))); | ||
} | ||
@@ -139,2 +143,2 @@ | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vLWV4dHJhbmVvdXMtZGVwZW5kZW5jaWVzLmpzIl0sIm5hbWVzIjpbImdldERlcGVuZGVuY2llcyIsImNvbnRleHQiLCJmaWxlcGF0aCIsInN5bmMiLCJnZXRGaWxlbmFtZSIsInBhY2thZ2VDb250ZW50IiwiSlNPTiIsInBhcnNlIiwicmVhZEZpbGVTeW5jIiwiZGVwZW5kZW5jaWVzIiwiZGV2RGVwZW5kZW5jaWVzIiwib3B0aW9uYWxEZXBlbmRlbmNpZXMiLCJwZWVyRGVwZW5kZW5jaWVzIiwiZSIsIm1pc3NpbmdFcnJvck1lc3NhZ2UiLCJwYWNrYWdlTmFtZSIsImRldkRlcEVycm9yTWVzc2FnZSIsIm9wdERlcEVycm9yTWVzc2FnZSIsInJlcG9ydElmTWlzc2luZyIsImRlcHMiLCJkZXBzT3B0aW9ucyIsIm5vZGUiLCJuYW1lIiwic3BsaXROYW1lIiwic3BsaXQiLCJzbGljZSIsImpvaW4iLCJpc0luRGVwcyIsInVuZGVmaW5lZCIsImlzSW5EZXZEZXBzIiwiaXNJbk9wdERlcHMiLCJpc0luUGVlckRlcHMiLCJhbGxvd0RldkRlcHMiLCJhbGxvd1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dClcblxuICAgIGlmICghZGVwcykge1xuICAgICAgcmV0dXJuIHt9XG4gICAgfVxuXG4gICAgY29uc3QgZGVwc09wdGlvbnMgPSB7XG4gICAgICBhbGxvd0RldkRlcHM6IHRlc3RDb25maWcob3B0aW9ucy5kZXZEZXBlbmRlbmNpZXMsIGZpbGVuYW1lKSAhPT0gZmFsc2UsXG4gICAgICBhbGxvd09wdERlcHM6IHRlc3RDb25maWcob3B0aW9ucy5vcHRpb25hbERlcGVuZGVuY2llcywgZmlsZW5hbWUpICE9PSBmYWxzZSxcbiAgICAgIGFsbG93UGVlckRlcHM6IHRlc3RDb25maWcob3B0aW9ucy5wZWVyRGVwZW5kZW5jaWVzLCBmaWxlbmFtZSkgIT09IGZhbHNlLFxuICAgIH1cblxuICAgIC8vIHRvZG86IHVzZSBtb2R1bGUgdmlzaXRvciBmcm9tIG1vZHVsZS11dGlscyBjb3JlXG4gICAgcmV0dXJuIHtcbiAgICAgIEltcG9ydERlY2xhcmF0aW9uOiBmdW5jdGlvbiAobm9kZSkge1xuICAgICAgICByZXBvcnRJZk1pc3NpbmcoY29udGV4dCwgZGVwcywgZGVwc09wdGlvbnMsIG5vZGUsIG5vZGUuc291cmNlLnZhbHVlKVxuICAgICAgfSxcbiAgICAgIENhbGxFeHByZXNzaW9uOiBmdW5jdGlvbiBoYW5kbGVSZXF1aXJlcyhub2RlKSB7XG4gICAgICAgIGlmIChpc1N0YXRpY1JlcXVpcmUobm9kZSkpIHtcbiAgICAgICAgICByZXBvcnRJZk1pc3NpbmcoY29udGV4dCwgZGVwcywgZGVwc09wdGlvbnMsIG5vZGUsIG5vZGUuYXJndW1lbnRzWzBdLnZhbHVlKVxuICAgICAgICB9XG4gICAgICB9LFxuICAgIH1cbiAgfSxcbn1cbiJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vLWV4dHJhbmVvdXMtZGVwZW5kZW5jaWVzLmpzIl0sIm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OiB0ZXN0Q29uZmlnKG9wdGlvbnMub3B0aW9uYWxEZXBlbmRlbmNpZXMsIGZpbGVuYW1lKSAhPT0gZmFsc2UsXG4gICAgICBhbGxvd1BlZXJEZXBzOiB0ZXN0Q29uZmlnKG9wdGlvbnMucGVlckRlcGVuZGVuY2llcywgZmlsZW5hbWUpICE9PSBmYWxzZSxcbiAgICB9XG5cbiAgICAvLyB0b2RvOiB1c2UgbW9kdWxlIHZpc2l0b3IgZnJvbSBtb2R1bGUtdXRpbHMgY29yZVxuICAgIHJldHVybiB7XG4gICAgICBJbXBvcnREZWNsYXJhdGlvbjogZnVuY3Rpb24gKG5vZGUpIHtcbiAgICAgICAgcmVwb3J0SWZNaXNzaW5nKGNvbnRleHQsIGRlcHMsIGRlcHNPcHRpb25zLCBub2RlLCBub2RlLnNvdXJjZS52YWx1ZSlcbiAgICAgIH0sXG4gICAgICBDYWxsRXhwcmVzc2lvbjogZnVuY3Rpb24gaGFuZGxlUmVxdWlyZXMobm9kZSkge1xuICAgICAgICBpZiAoaXNTdGF0aWNSZXF1aXJlKG5vZGUpKSB7XG4gICAgICAgICAgcmVwb3J0SWZNaXNzaW5nKGNvbnRleHQsIGRlcHMsIGRlcHNPcHRpb25zLCBub2RlLCBub2RlLmFyZ3VtZW50c1swXS52YWx1ZSlcbiAgICAgICAgfVxuICAgICAgfSxcbiAgICB9XG4gIH0sXG59XG4iXX0= |
@@ -14,3 +14,19 @@ 'use strict'; | ||
function captureDeclaration(identifierOrPattern) { | ||
if (identifierOrPattern.type === 'ObjectPattern') { | ||
// recursively capture | ||
identifierOrPattern.properties.forEach(function (property) { | ||
captureDeclaration(property.value); | ||
}); | ||
} else { | ||
// assume it's a single standard identifier | ||
specifierExportCount++; | ||
} | ||
} | ||
return { | ||
'ExportDefaultSpecifier': function () { | ||
specifierExportCount++; | ||
}, | ||
'ExportSpecifier': function (node) { | ||
@@ -29,13 +45,4 @@ if (node.exported.name === 'default') { | ||
function captureDeclaration(identifierOrPattern) { | ||
if (identifierOrPattern.type === 'ObjectPattern') { | ||
// recursively capture | ||
identifierOrPattern.properties.forEach(function (property) { | ||
captureDeclaration(property.value); | ||
}); | ||
} else { | ||
// assume it's a single standard identifier | ||
specifierExportCount++; | ||
} | ||
} | ||
// don't count flow types exports | ||
if (node.exportKind === 'type') return; | ||
@@ -70,2 +77,2 @@ if (node.declaration.declarations) { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3ByZWZlci1kZWZhdWx0LWV4cG9ydC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwibWV0YSIsImRvY3MiLCJjcmVhdGUiLCJjb250ZXh0Iiwic3BlY2lmaWVyRXhwb3J0Q291bnQiLCJoYXNEZWZhdWx0RXhwb3J0IiwiaGFzU3RhckV4cG9ydCIsIm5hbWVkRXhwb3J0Tm9kZSIsIm5vZGUiLCJleHBvcnRlZCIsIm5hbWUiLCJkZWNsYXJhdGlvbiIsImNhcHR1cmVEZWNsYXJhdGlvbiIsImlkZW50aWZpZXJPclBhdHRlcm4iLCJ0eXBlIiwicHJvcGVydGllcyIsImZvckVhY2giLCJwcm9wZXJ0eSIsInZhbHVlIiwiZGVjbGFyYXRpb25zIiwiaWQiLCJyZXBvcnQiXSwibWFwcGluZ3MiOiJBQUFBOztBQUVBQSxPQUFPQyxPQUFQLEdBQWlCO0FBQ2ZDLFFBQU07QUFDSkMsVUFBTTtBQURGLEdBRFM7O0FBS2ZDLFVBQVEsVUFBU0MsT0FBVCxFQUFrQjtBQUN4QixRQUFJQyx1QkFBdUIsQ0FBM0I7QUFDQSxRQUFJQyxtQkFBbUIsS0FBdkI7QUFDQSxRQUFJQyxnQkFBZ0IsS0FBcEI7QUFDQSxRQUFJQyxrQkFBa0IsSUFBdEI7O0FBRUEsV0FBTztBQUNMLHlCQUFtQixVQUFTQyxJQUFULEVBQWU7QUFDaEMsWUFBSUEsS0FBS0MsU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lvbiBjYXB0dXJlRGVjbGFyYXRpb24oaWRlbnRpZmllck9yUGF0dGVybikge1xuICAgICAgICAgIGlmIChpZGVudGlmaWVyT3JQYXR0ZXJuLnR5cGUgPT09ICdPYmplY3RQYXR0ZXJuJykge1xuICAgICAgICAgICAgLy8gcmVjdXJzaXZlbHkgY2FwdHVyZVxuICAgICAgICAgICAgaWRlbnRpZmllck9yUGF0dGVybi5wcm9wZXJ0aWVzXG4gICAgICAgICAgICAgIC5mb3JFYWNoKGZ1bmN0aW9uKHByb3BlcnR5KSB7XG4gICAgICAgICAgICAgICAgY2FwdHVyZURlY2xhcmF0aW9uKHByb3BlcnR5LnZhbHVlKVxuICAgICAgICAgICAgICB9KVxuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgLy8gYXNzdW1lIGl0J3MgYSBzaW5nbGUgc3RhbmRhcmQgaWRlbnRpZmllclxuICAgICAgICAgICAgc3BlY2lmaWVyRXhwb3J0Q291bnQrK1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChub2RlLmRlY2xhcmF0aW9uLmRlY2xhcmF0aW9ucykge1xuICAgICAgICAgIG5vZGUuZGVjbGFyYXRpb24uZGVjbGFyYXRpb25zLmZvckVhY2goZnVuY3Rpb24oZGVjbGFyYXRpb24pIHtcbiAgICAgICAgICAgIGNhcHR1cmVEZWNsYXJhdGlvbihkZWNsYXJhdGlvbi5pZClcbiAgICAgICAgICB9KVxuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgIC8vIGNhcHR1cmVzICdleHBvcnQgZnVuY3Rpb24gZm9vKCkge30nIHN5bnRheFxuICAgICAgICAgIHNwZWNpZmllckV4cG9ydENvdW50KytcbiAgICAgICAgfVxuXG4gICAgICAgIG5hbWVkRXhwb3J0Tm9kZSA9IG5vZGVcbiAgICAgIH0sXG5cbiAgICAgICdFeHBvcnREZWZhdWx0RGVjbGFyYXRpb24nOiBmdW5jdGlvbigpIHtcbiAgICAg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0S2luZCA9PT0gJ3R5cGUnKSByZXR1cm5cblxuICAgICAgICBpZiAobm9kZS5kZWNsYXJhdGlvbi5kZWNsYXJhdGlvbnMpIHtcbiAgICAgICAgICBub2RlLmRlY2xhcmF0aW9uLmRlY2xhcmF0aW9ucy5mb3JFYWNoKGZ1bmN0aW9uKGRlY2xhcmF0aW9uKSB7XG4gICAgICAgICAgICBjYXB0dXJlRGVjbGFyYXRpb24oZGVjbGFyYXRpb24uaWQpXG4gICAgICAgICAgfSlcbiAgICAgICAgfVxuICAgICAgICBlbHNlIHtcbiAgICAgICAgICAvLyBjYXB0dXJlcyAnZXhwb3J0IGZ1bmN0aW9uIGZvbygpIHt9JyBzeW50YXhcbiAgICAgICAgICBzcGVjaWZpZXJFeHBvcnRDb3VudCsrXG4gICAgICAgIH1cblxuICAgICAgICBuYW1lZEV4cG9ydE5vZGUgPSBub2RlXG4gICAgICB9LFxuXG4gICAgICAnRXhwb3J0RGVmYXVsdERlY2xhcmF0aW9uJzogZnVuY3Rpb24oKSB7XG4gICAgICAgIGhhc0RlZmF1bHRFeHBvcnQgPSB0cnVlXG4gICAgICB9LFxuXG4gICAgICAnRXhwb3J0QWxsRGVjbGFyYXRpb24nOiBmdW5jdGlvbigpIHtcbiAgICAgICAgaGFzU3RhckV4cG9ydCA9IHRydWVcbiAgICAgIH0sXG5cbiAgICAgICdQcm9ncmFtOmV4aXQnOiBmdW5jdGlvbigpIHtcbiAgICAgICAgaWYgKHNwZWNpZmllckV4cG9ydENvdW50ID09PSAxICYmICFoYXNEZWZhdWx0RXhwb3J0ICYmICFoYXNTdGFyRXhwb3J0KSB7XG4gICAgICAgICAgY29udGV4dC5yZXBvcnQobmFtZWRFeHBvcnROb2RlLCAnUHJlZmVyIGRlZmF1bHQgZXhwb3J0LicpXG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgfVxuICB9LFxufVxuIl19 |
{ | ||
"name": "eslint-plugin-import", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Import with sanity.", | ||
@@ -54,6 +54,6 @@ "engines": { | ||
"babel-preset-es2015-argon": "latest", | ||
"babel-register": "6.9.0", | ||
"babel-register": "6.16.3", | ||
"chai": "^3.4.0", | ||
"coveralls": "^2.11.4", | ||
"cross-env": "^3.0.0", | ||
"cross-env": "^3.1.0", | ||
"eslint": "3.x", | ||
@@ -68,3 +68,3 @@ "eslint-import-resolver-node": "file:./resolvers/node", | ||
"linklocal": "^2.6.0", | ||
"mocha": "^2.2.1", | ||
"mocha": "^3.1.2", | ||
"nyc": "^8.3.0", | ||
@@ -83,3 +83,3 @@ "redux": "^3.0.4", | ||
"debug": "^2.2.0", | ||
"doctrine": "1.3.x", | ||
"doctrine": "1.5.0", | ||
"eslint-import-resolver-node": "^0.2.0", | ||
@@ -86,0 +86,0 @@ "eslint-module-utils": "^1.0.0", |
@@ -76,4 +76,5 @@ # eslint-plugin-import | ||
* Prefer a default export if module exports a single name ([`prefer-default-export`]) | ||
* Limit the maximum number of dependencies a module can have. ([`max-dependencies`]) | ||
* Forbid unassigned imports. ([`no-unassigned-import`]) | ||
* Limit the maximum number of dependencies a module can have ([`max-dependencies`]) | ||
* Forbid unassigned imports ([`no-unassigned-import`]) | ||
* Forbid named default exports ([`no-named-default`]) | ||
@@ -89,2 +90,3 @@ [`first`]: ./docs/rules/first.md | ||
[`no-unassigned-import`]: ./docs/rules/no-unassigned-import.md | ||
[`no-named-default`]: ./docs/rules/no-named-default.md | ||
@@ -91,0 +93,0 @@ ## Installation |
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
341522
49
2390
409
+ Addeddoctrine@1.5.0(transitive)
- Removeddoctrine@1.3.0(transitive)
Updateddoctrine@1.5.0