eslint-module-utils
Advanced tools
Comparing version 2.8.2 to 2.9.0
@@ -8,2 +8,7 @@ # Change Log | ||
## v2.9.0 - 2024-09-02 | ||
### New | ||
- add support for Flat Config ([#3018], thanks [@michaelfaith]) | ||
## v2.8.2 - 2024-08-25 | ||
@@ -155,2 +160,3 @@ | ||
[#3039]: https://github.com/import-js/eslint-plugin-import/pull/3039 | ||
[#3018]: https://github.com/import-js/eslint-plugin-import/pull/3018 | ||
[#2963]: https://github.com/import-js/eslint-plugin-import/pull/2963 | ||
@@ -202,2 +208,3 @@ [#2755]: https://github.com/import-js/eslint-plugin-import/pull/2755 | ||
[@mgwalker]: https://github.com/mgwalker | ||
[@michaelfaith]: https://github.com/michaelfaith | ||
[@Mysak0CZ]: https://github.com/Mysak0CZ | ||
@@ -204,0 +211,0 @@ [@nicolo-ribaudo]: https://github.com/nicolo-ribaudo |
@@ -17,3 +17,3 @@ 'use strict'; | ||
/** @type {Set<import('./types').Extension>} */ | ||
const exts = new Set(settings['import/extensions'] || ['.js']); | ||
const exts = new Set(settings['import/extensions'] || ['.js', '.mjs', '.cjs']); | ||
@@ -56,5 +56,9 @@ // all alternate parser extensions are also valid | ||
// check extension whitelist first (cheap) | ||
if (!hasValidExtension(path, context)) { return true; } | ||
if (!hasValidExtension(path, context)) { | ||
return true; | ||
} | ||
if (!('import/ignore' in context.settings)) { return false; } | ||
if (!('import/ignore' in context.settings)) { | ||
return false; | ||
} | ||
const ignoreStrings = context.settings['import/ignore']; | ||
@@ -61,0 +65,0 @@ |
{ | ||
"name": "eslint-module-utils", | ||
"version": "2.8.2", | ||
"version": "2.9.0", | ||
"description": "Core utilities to support eslint-plugin-import and other module-related plugins.", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
49507
973