eslint-module-utils
Advanced tools
Comparing version 2.6.1 to 2.6.2
@@ -8,2 +8,7 @@ # Change Log | ||
## v2.6.2 - 2021-08-08 | ||
### Fixed | ||
- Use `context.getPhysicalFilename()` when available (ESLint 7.28+) ([#2160], thanks [@pmcelhaney]) | ||
## v2.6.1 - 2021-05-13 | ||
@@ -89,31 +94,33 @@ | ||
[#2026]: https://github.com/benmosher/eslint-plugin-import/pull/2026 | ||
[#1786]: https://github.com/benmosher/eslint-plugin-import/pull/1786 | ||
[#1671]: https://github.com/benmosher/eslint-plugin-import/pull/1671 | ||
[#1606]: https://github.com/benmosher/eslint-plugin-import/pull/1606 | ||
[#1602]: https://github.com/benmosher/eslint-plugin-import/pull/1602 | ||
[#1591]: https://github.com/benmosher/eslint-plugin-import/pull/1591 | ||
[#1551]: https://github.com/benmosher/eslint-plugin-import/pull/1551 | ||
[#1435]: https://github.com/benmosher/eslint-plugin-import/pull/1435 | ||
[#1409]: https://github.com/benmosher/eslint-plugin-import/pull/1409 | ||
[#1356]: https://github.com/benmosher/eslint-plugin-import/pull/1356 | ||
[#1290]: https://github.com/benmosher/eslint-plugin-import/pull/1290 | ||
[#1218]: https://github.com/benmosher/eslint-plugin-import/pull/1218 | ||
[#1166]: https://github.com/benmosher/eslint-plugin-import/issues/1166 | ||
[#1160]: https://github.com/benmosher/eslint-plugin-import/pull/1160 | ||
[#1035]: https://github.com/benmosher/eslint-plugin-import/issues/1035 | ||
[#599]: https://github.com/benmosher/eslint-plugin-import/pull/599 | ||
[#2160]: https://github.com/import-js/eslint-plugin-import/pull/2160 | ||
[#2026]: https://github.com/import-js/eslint-plugin-import/pull/2026 | ||
[#1786]: https://github.com/import-js/eslint-plugin-import/pull/1786 | ||
[#1671]: https://github.com/import-js/eslint-plugin-import/pull/1671 | ||
[#1606]: https://github.com/import-js/eslint-plugin-import/pull/1606 | ||
[#1602]: https://github.com/import-js/eslint-plugin-import/pull/1602 | ||
[#1591]: https://github.com/import-js/eslint-plugin-import/pull/1591 | ||
[#1551]: https://github.com/import-js/eslint-plugin-import/pull/1551 | ||
[#1435]: https://github.com/import-js/eslint-plugin-import/pull/1435 | ||
[#1409]: https://github.com/import-js/eslint-plugin-import/pull/1409 | ||
[#1356]: https://github.com/import-js/eslint-plugin-import/pull/1356 | ||
[#1290]: https://github.com/import-js/eslint-plugin-import/pull/1290 | ||
[#1218]: https://github.com/import-js/eslint-plugin-import/pull/1218 | ||
[#1166]: https://github.com/import-js/eslint-plugin-import/issues/1166 | ||
[#1160]: https://github.com/import-js/eslint-plugin-import/pull/1160 | ||
[#1035]: https://github.com/import-js/eslint-plugin-import/issues/1035 | ||
[#599]: https://github.com/import-js/eslint-plugin-import/pull/599 | ||
[@hulkish]: https://github.com/hulkish | ||
[@timkraut]: https://github.com/timkraut | ||
[@vikr01]: https://github.com/vikr01 | ||
[@aladdin-add]: https://github.com/aladdin-add | ||
[@arcanis]: https://github.com/arcanis | ||
[@bradzacher]: https://github.com/bradzacher | ||
[@brettz9]: https://github.com/brettz9 | ||
[@christophercurrie]: https://github.com/christophercurrie | ||
[@brettz9]: https://github.com/brettz9 | ||
[@hulkish]: https://github.com/hulkish | ||
[@iamnapo]: https://github.com/iamnapo | ||
[@JounQin]: https://github.com/JounQin | ||
[@arcanis]: https://github.com/arcanis | ||
[@sompylasar]: https://github.com/sompylasar | ||
[@iamnapo]: https://github.com/iamnapo | ||
[@kaiyoma]: https://github.com/kaiyoma | ||
[@manuth]: https://github.com/manuth | ||
[@aladdin-add]: https://github.com/aladdin-add | ||
[@pmcelhaney]: https://github.com/pmcelhaney | ||
[@sompylasar]: https://github.com/sompylasar | ||
[@timkraut]: https://github.com/timkraut | ||
[@vikr01]: https://github.com/vikr01 |
{ | ||
"name": "eslint-module-utils", | ||
"version": "2.6.1", | ||
"version": "2.6.2", | ||
"description": "Core utilities to support eslint-plugin-import and other module-related plugins.", | ||
@@ -14,3 +14,3 @@ "engines": { | ||
"type": "git", | ||
"url": "git+https://github.com/benmosher/eslint-plugin-import.git" | ||
"url": "git+https://github.com/import-js/eslint-plugin-import.git" | ||
}, | ||
@@ -26,5 +26,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/benmosher/eslint-plugin-import/issues" | ||
"url": "https://github.com/import-js/eslint-plugin-import/issues" | ||
}, | ||
"homepage": "https://github.com/benmosher/eslint-plugin-import#readme", | ||
"homepage": "https://github.com/import-js/eslint-plugin-import#readme", | ||
"dependencies": { | ||
@@ -31,0 +31,0 @@ "debug": "^3.2.7", |
@@ -38,3 +38,3 @@ 'use strict'; | ||
// only parse one file in isolate mode, which is much, much faster. | ||
// https://github.com/benmosher/eslint-plugin-import/issues/1408#issuecomment-509298962 | ||
// https://github.com/import-js/eslint-plugin-import/issues/1408#issuecomment-509298962 | ||
delete parserOptions.project; | ||
@@ -56,7 +56,3 @@ delete parserOptions.projects; | ||
if (!ast || typeof ast !== 'object') { | ||
console.warn( | ||
'`parseForESLint` from parser `' + | ||
parserPath + | ||
'` is invalid and will just be ignored' | ||
); | ||
console.warn('`parseForESLint` from parser `' + parserPath + '` is invalid and will just be ignored'); | ||
} else { | ||
@@ -63,0 +59,0 @@ return ast; |
@@ -220,6 +220,3 @@ 'use strict'; | ||
try { | ||
return relative( p | ||
, context.getFilename() | ||
, context.settings | ||
); | ||
return relative(p, context.getPhysicalFilename ? context.getPhysicalFilename() : context.getFilename(), context.settings); | ||
} catch (err) { | ||
@@ -226,0 +223,0 @@ if (!erroredContexts.has(context)) { |
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
26478
15
574