Socket
Socket
Sign inDemoInstall

eslint-module-utils

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-module-utils - npm Package Compare versions

Comparing version 2.8.2 to 2.9.0

7

CHANGELOG.md

@@ -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

10

ignore.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc