eslint-plugin-import
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.8.0] - 2016-05-11 | ||
### Added | ||
- [`prefer-default-export`], new rule. ([#308], thanks [@gavriguy]) | ||
### Fixed | ||
- Ignore namespace / ES7 re-exports in [`no-mutable-exports`]. ([#317], fixed by [#322]. thanks [@borisyankov] + [@jfmengels]) | ||
- Make [`no-extraneous-dependencies`] handle scoped packages ([#316], thanks [@jfmengels]) | ||
## [1.7.0] - 2016-05-06 | ||
@@ -15,3 +23,3 @@ ### Added | ||
and search for `export`s. If unspecified, all extensions are considered valid (for now). | ||
In v2, this will likely default to `['.js', MODULE_EXT]`,. ([#297], to fix [#267]) | ||
In v2, this will likely default to `['.js', MODULE_EXT]`. ([#297], to fix [#267]) | ||
@@ -205,3 +213,7 @@ ### Fixed | ||
[`no-mutable-exports`]: ./docs/rules/no-mutable-exports.md | ||
[`prefer-default-export`]: ./docs/rules/prefer-default-export.md | ||
[#322]: https://github.com/benmosher/eslint-plugin-import/pull/322 | ||
[#316]: https://github.com/benmosher/eslint-plugin-import/pull/316 | ||
[#308]: https://github.com/benmosher/eslint-plugin-import/pull/308 | ||
[#298]: https://github.com/benmosher/eslint-plugin-import/pull/298 | ||
@@ -229,2 +241,3 @@ [#297]: https://github.com/benmosher/eslint-plugin-import/pull/297 | ||
[#317]: https://github.com/benmosher/eslint-plugin-import/issues/317 | ||
[#286]: https://github.com/benmosher/eslint-plugin-import/issues/286 | ||
@@ -246,3 +259,4 @@ [#281]: https://github.com/benmosher/eslint-plugin-import/issues/281 | ||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v1.7.0...HEAD | ||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v1.8.0...HEAD | ||
[1.8.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.7.0...v1.8.0 | ||
[1.7.0]: https://github.com/benmosher/eslint-plugin-import/compare/v1.6.1...v1.7.0 | ||
@@ -282,1 +296,3 @@ [1.6.1]: https://github.com/benmosher/eslint-plugin-import/compare/v1.6.0...v1.6.1 | ||
[@josh]: https://github.com/josh | ||
[@borisyankov]: https://github.com/borisyankov | ||
[@gavriguy]: https://github.com/gavriguy |
@@ -25,2 +25,3 @@ 'use strict'; | ||
'newline-after-import': require('./rules/newline-after-import'), | ||
'prefer-default-export': require('./rules/prefer-default-export'), | ||
@@ -41,2 +42,2 @@ // metadata-based | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFPLElBQU0sd0JBQVE7QUFDbkIsbUJBQWlCLFFBQVEsdUJBQVIsQ0FBakI7QUFDQSxXQUFTLFFBQVEsZUFBUixDQUFUO0FBQ0EsYUFBVyxRQUFRLGlCQUFSLENBQVg7QUFDQSxlQUFhLFFBQVEsbUJBQVIsQ0FBYjtBQUNBLGtCQUFnQixRQUFRLHNCQUFSLENBQWhCO0FBQ0EsWUFBVSxRQUFRLGdCQUFSLENBQVY7QUFDQSx3QkFBc0IsUUFBUSw0QkFBUixDQUF0QjtBQUNBLGdCQUFjLFFBQVEsb0JBQVIsQ0FBZDs7QUFFQSx5QkFBdUIsUUFBUSw2QkFBUixDQUF2QjtBQUNBLGdDQUE4QixRQUFRLG9DQUFSLENBQTlCOztBQUVBLGlCQUFlLFFBQVEscUJBQVIsQ0FBZjtBQUNBLFlBQVUsUUFBUSxnQkFBUixDQUFWO0FBQ0EsbUJBQWlCLFFBQVEsdUJBQVIsQ0FBakI7QUFDQSxtQkFBaUIsUUFBUSx1QkFBUixDQUFqQjtBQUNBLGdDQUE4QixRQUFRLG9DQUFSLENBQTlCO0FBQ0EsdUJBQXFCLFFBQVEsMkJBQVIsQ0FBckI7QUFDQSxXQUFTLFFBQVEsZUFBUixDQUFUO0FBQ0EsMEJBQXdCLFFBQVEsOEJBQVIsQ0FBeEI7OztBQUdBLG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yc6IHJlcXVpcmUoJy4vcnVsZXMvbm8tZXh0cmFuZW91cy1kZXBlbmRlbmNpZXMnKSxcbiAgJ25vLW5vZGVqcy1tb2R1bGVzJzogcmVxdWlyZSgnLi9ydWxlcy9uby1ub2RlanMtbW9kdWxlcycpLFxuICAnb3JkZXInOiByZXF1aXJlKCcuL3J1bGVzL29yZGVyJyksXG4gICduZXdsaW5lLWFmdGVyLWltcG9ydCc6IHJlcXVpcmUoJy4vcnVsZXMvbmV3bGluZS1hZnRlci1pbXBvcnQnKSxcbiAgJ3ByZWZlci1kZWZhdWx0LWV4cG9ydCc6IHJlcXVpcmUoJy4vcnVsZXMvcHJlZmVyLWRlZmF1bHQtZXhwb3J0JyksXG5cbiAgLy8gbWV0YWRhdGEtYmFzZWRcbiAgJ25vLWRlcHJlY2F0ZWQnOiByZXF1aXJlKCcuL3J1bGVzL25vLWRlcHJlY2F0ZWQnKSxcbn1cblxuZXhwb3J0IGNvbnN0IGNvbmZpZ3MgPSB7XG4gICdlcnJvcnMnOiByZXF1aXJlKCcuLi9jb25maWcvZXJyb3JzJyksXG4gICd3YXJuaW5ncyc6IHJlcXVpcmUoJy4uL2NvbmZpZy93YXJuaW5ncycpLFxuXG4gIC8vIHVzZWZ1bCBzdHVmZiBmb3IgZm9sa3MgdXNpbmcgUmVhY3RcbiAgJ3JlYWN0JzogcmVxdWlyZSgnLi4vY29uZmlnL3JlYWN0JyksXG5cbiAgLy8gc2hoaGguLi4gd29yayBpbiBwcm9ncmVzcyBcInNlY3JldFwiIHJ1bGVzXG4gICdzdGFnZS0wJzogcmVxdWlyZSgnLi4vY29uZmlnL3N0YWdlLTAnKSxcbn1cbiJdfQ== |
@@ -55,3 +55,4 @@ 'use strict'; | ||
} | ||
var packageName = name.split('/')[0]; | ||
var splitName = name.split('/'); | ||
var packageName = splitName[0][0] === '@' ? splitName.slice(0, 2).join('/') : splitName[0]; | ||
@@ -110,2 +111,2 @@ var isInDeps = deps.dependencies[packageName] !== undefined; | ||
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NpbmcoY29udGV4dCwgZGVwcywgYWxsb3dEZXZEZXBzLCBhbGxvd09wdERlcHMsIG5vZGUsIG5vZGUuYXJndW1lbnRzWzBdLnZhbHVlKVxuICAgICAgfVxuICAgIH0sXG4gIH1cbn1cblxubW9kdWxlLmV4cG9ydHMuc2NoZW1hID0gW1xuICB7XG4gICAgJ3R5cGUnOiAnb2JqZWN0JyxcbiAgICAncHJvcGVydGllcyc6IHtcbiAgICAgICdkZXZEZXBlbmRlbmNpZXMnOiB7ICd0eXBlJzogJ2Jvb2xlYW4nIH0sXG4gICAgICAnb3B0aW9uYWxEZXBlbmRlbmNpZXMnOiB7ICd0eXBlJzogJ2Jvb2xlYW4nIH0sXG4gICAgfSxcbiAgICAnYWRkaXRpb25hbFByb3BlcnRpZXMnOiBmYWxzZSxcbiAgfSxcbl1cbiJdfQ== |
@@ -65,3 +65,3 @@ 'use strict'; | ||
checkDeclaration(node.declaration); | ||
} else { | ||
} else if (!node.source) { | ||
for (var _iterator3 = node.specifiers, _isArray3 = Array.isArray(_iterator3), _i3 = 0, _iterator3 = _isArray3 ? _iterator3 : _iterator3[Symbol.iterator]();;) { | ||
@@ -91,2 +91,2 @@ var _ref4; | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vLW11dGFibGUtZXhwb3J0cy5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE9BQU8sT0FBUCxHQUFpQixVQUFVLE9BQVYsRUFBbUI7QUFDbEMsV0FBUyxnQkFBVCxDQUEwQixJQUExQixFQUFnQztRQUN2QixPQUFRLEtBQVIsS0FEdUI7O0FBRTlCLFFBQUksU0FBUyxLQUFULElBQWtCLFNBQVMsS0FBVCxFQUFnQjtBQUNwQyxjQUFRLE1BQVIsQ0FBZSxJQUFmLDJCQUEyQywyQ0FBM0MsRUFEb0M7S0FBdEM7R0FGRjs7QUFPQSxXQUFTLHdCQUFULE9B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QuZ2V0U2NvcGUoKVxuXG4gICAgaWYgKG5vZGUuZGVjbGFyYXRpb24pICB7XG4gICAgICBjaGVja0RlY2xhcmF0aW9uKG5vZGUuZGVjbGFyYXRpb24pXG4gICAgfSBlbHNlIGlmICghbm9kZS5zb3VyY2UpIHtcbiAgICAgIGZvciAobGV0IHNwZWNpZmllciBvZiBub2RlLnNwZWNpZmllcnMpIHtcbiAgICAgICAgY2hlY2tEZWNsYXJhdGlvbnNJblNjb3BlKHNjb3BlLCBzcGVjaWZpZXIubG9jYWwubmFtZSlcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICByZXR1cm4ge1xuICAgICdFeHBvcnREZWZhdWx0RGVjbGFyYXRpb24nOiBoYW5kbGVFeHBvcnREZWZhdWx0LFxuICAgICdFeHBvcnROYW1lZERlY2xhcmF0aW9uJzogaGFuZGxlRXhwb3J0TmFtZWQsXG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "eslint-plugin-import", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Import with sanity.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -60,2 +60,3 @@ # eslint-plugin-import | ||
* Enforce a newline after import statements ([`newline-after-import`]) | ||
* Prefer a default export if module exports a single name ([`prefer-default-export`]) | ||
@@ -68,2 +69,3 @@ [`imports-first`]: ./docs/rules/imports-first.md | ||
[`newline-after-import`]: ./docs/rules/newline-after-import.md | ||
[`prefer-default-export`]: ./docs/rules/prefer-default-export.md | ||
@@ -70,0 +72,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
271497
42
2211
299