eslint-plugin-import
Advanced tools
Comparing version 2.5.0 to 2.6.0
@@ -9,9 +9,15 @@ # Change Log | ||
## [2.6.0] - 2017-06-23 | ||
### Changed | ||
- update tests / peerDeps for ESLint 4.0 compatibility ([#871], thanks [@mastilver]) | ||
- [`memo-parser`] updated to require `filePath` on parser options as it melts | ||
down if it's not there, now that this plugin always provides it. (see [#863]) | ||
## [2.5.0] - 2017-06-22 | ||
Re-releasing v[2.4.0] after discovering that the memory leak is isolated to the memo-parser, | ||
Re-releasing v[2.4.0] after discovering that the memory leak is isolated to the [`memo-parser`], | ||
which is more or less experimental anyway. | ||
### Added | ||
- Autofixer for newline-after-import. [#686], [#696] (thanks [@eelyafi]) | ||
- Autofixer for newline-after-import. ([#686] + [#696], thanks [@eelyafi]) | ||
@@ -156,4 +162,3 @@ ## [2.4.0] - 2017-06-02 [YANKED] | ||
## [1.10.1] - 2016-07-02 [ | ||
ED] | ||
## [1.10.1] - 2016-07-02 [YANKED] | ||
### Added | ||
@@ -410,2 +415,5 @@ - Officially support ESLint 3.x. (peerDependencies updated to `2.x - 3.x`) | ||
[`memo-parser`]: ./memo-parser/README.md | ||
[#871]: https://github.com/benmosher/eslint-plugin-import/pull/871 | ||
[#742]: https://github.com/benmosher/eslint-plugin-import/pull/742 | ||
@@ -470,2 +478,3 @@ [#737]: https://github.com/benmosher/eslint-plugin-import/pull/737 | ||
[#863]: https://github.com/benmosher/eslint-plugin-import/issues/863 | ||
[#839]: https://github.com/benmosher/eslint-plugin-import/issues/839 | ||
@@ -531,3 +540,4 @@ [#686]: https://github.com/benmosher/eslint-plugin-import/issues/686 | ||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v2.5.0...HEAD | ||
[Unreleased]: https://github.com/benmosher/eslint-plugin-import/compare/v2.6.0...HEAD | ||
[2.6.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.5.0...v2.6.0 | ||
[2.5.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.4.0...v2.5.0 | ||
@@ -617,1 +627,2 @@ [2.4.0]: https://github.com/benmosher/eslint-plugin-import/compare/v2.3.0...v2.4.0 | ||
[@eelyafi]: https://github.com/eelyafi | ||
[@mastilver]: https://github.com/mastilver |
@@ -15,3 +15,3 @@ 'use strict'; | ||
node: im.local, | ||
message: `Use default import syntax to import \'${im.local.name}\'.` }); | ||
message: `Use default import syntax to import '${im.local.name}'.` }); | ||
} | ||
@@ -23,2 +23,2 @@ }); | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vLW5hbWVkLWRlZmF1bHQuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJkb2NzIiwiY3JlYXRlIiwiY29udGV4dCIsIm5vZGUiLCJzcGVjaWZpZXJzIiwiZm9yRWFjaCIsImltIiwidHlwZSIsImltcG9ydGVkIiwibmFtZSIsInJlcG9ydCIsImxvY2FsIiwibWVzc2FnZSJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQjtBQUNmQyxRQUFNO0FBQ0pDLFVBQU07QUFERixHQURTOztBQUtmQyxVQUFRLFVBQVVDLE9BQVYsRUFBbUI7QUFDekIsV0FBTztBQUNMLDJCQUFxQixVQUFVQyxJQUFWLEVBQWdCO0FBQ25DQSxhQUFLQyxVQUFMLENBQWdCQyxPQUFoQixDQUF3QixVQUFVQyxFQUFWLEVBQWM7QUFDcEMsY0FBSUEsR0FBR0MsSUFBSCxLQUFZLGlCQUFaLElBQWlDRCxHQUFHRSxRQUFILENBQVlDLElBQVosS0FBcUIsU0FBMUQsRUFBcUU7QUFDbkVQLG9CQUFRUSxNQUFSLENBQWU7QUFDYlAsb0JBQU1HLEdBQUdLLEtBREk7QUFFYkMsdUJBQVUseUNBQXdDTixHQUFHSyxLQUFILENBQVNGLElBQUssS0FGbkQsRUFBZjtBQUdEO0FBQ0YsU0FORDtBQU9EO0FBVEksS0FBUDtBQVdEO0FBakJjLENBQWpCIiwiZmlsZSI6InJ1bGVzL25vLW5hbWVkLWRlZmF1bHQuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHtcbiAgbWV0YToge1xuICAgIGRvY3M6IHt9LFxuICB9LFxuXG4gIGNyZWF0ZTogZnVuY3Rpb24gKGNvbnRleHQpIHtcbiAgICByZXR1cm4ge1xuICAgICAgJ0ltcG9ydERlY2xhcmF0aW9uJzogZnVuY3Rpb24gKG5vZGUpIHtcbiAgICAgICAgbm9kZS5zcGVjaWZpZXJzLmZvckVhY2goZnVuY3Rpb24gKGltKSB7XG4gICAgICAgICAgaWYgKGltLnR5cGUgPT09ICdJbXBvcnRTcGVjaWZpZXInICYmIGltLmltcG9ydGVkLm5hbWUgPT09ICdkZWZhdWx0Jykge1xuICAgICAgICAgICAgY29udGV4dC5yZXBvcnQoe1xuICAgICAgICAgICAgICBub2RlOiBpbS5sb2NhbCxcbiAgICAgICAgICAgICAgbWVzc2FnZTogYFVzZSBkZWZhdWx0IGltcG9ydCBzeW50YXggdG8gaW1wb3J0IFxcJyR7aW0ubG9jYWwubmFtZX1cXCcuYCB9KVxuICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICAgIH0sXG4gICAgfVxuICB9LFxufVxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vLW5hbWVkLWRlZmF1bHQuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIm1ldGEiLCJkb2NzIiwiY3JlYXRlIiwiY29udGV4dCIsIm5vZGUiLCJzcGVjaWZpZXJzIiwiZm9yRWFjaCIsImltIiwidHlwZSIsImltcG9ydGVkIiwibmFtZSIsInJlcG9ydCIsImxvY2FsIiwibWVzc2FnZSJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUF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eW50YXggdG8gaW1wb3J0ICcke2ltLmxvY2FsLm5hbWV9Jy5gIH0pXG4gICAgICAgICAgfVxuICAgICAgICB9KVxuICAgICAgfSxcbiAgICB9XG4gIH0sXG59XG4iXX0= |
@@ -20,5 +20,8 @@ "use strict" | ||
exports.parse = function parse(content, options) { | ||
// them defaults yo | ||
options = Object.assign({}, options, parserOptions) | ||
if (!options.filePath) { | ||
throw new Error("no file path provided!") | ||
} | ||
const keyHash = crypto.createHash('sha256') | ||
@@ -25,0 +28,0 @@ keyHash.update(content) |
{ | ||
"name": "memo-parser", | ||
"version": "0.1.0", | ||
"engines": { "node": ">=4" }, | ||
"version": "0.2.0", | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"description": "Memoizing wrapper for any ESLint-compatible parser module.", | ||
@@ -24,3 +26,6 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/benmosher/eslint-plugin-import#readme" | ||
"homepage": "https://github.com/benmosher/eslint-plugin-import#readme", | ||
"peerDependencies": { | ||
"eslint": ">=3.5.0" | ||
} | ||
} |
{ | ||
"name": "eslint-plugin-import", | ||
"version": "2.5.0", | ||
"version": "2.6.0", | ||
"description": "Import with sanity.", | ||
@@ -77,3 +77,3 @@ "engines": { | ||
"peerDependencies": { | ||
"eslint": "2.x - 3.x" | ||
"eslint": "2.x - 4.x" | ||
}, | ||
@@ -80,0 +80,0 @@ "dependencies": { |
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
364709
2527