eslint-module-utils
Advanced tools
+11
-0
@@ -8,2 +8,10 @@ # Change Log | ||
| ## v2.12.1 - 2025-06-19 | ||
| ### Fixed | ||
| - `unambiguous`: detect modules exported from minified code ([#3124], thanks [@michaelfaith]) | ||
| ### Changed | ||
| - [refactor] `parse`: avoid using a regex here (thanks [@ljharb]) | ||
| ## v2.12.0 - 2024-09-26 | ||
@@ -181,2 +189,3 @@ | ||
| [#3124]: https://github.com/import-js/eslint-plugin-import/pull/3124 | ||
| [#3072]: https://github.com/import-js/eslint-plugin-import/pull/3072 | ||
@@ -232,2 +241,3 @@ [#3061]: https://github.com/import-js/eslint-plugin-import/pull/3061 | ||
| [@leipert]: https://github.com/leipert | ||
| [@ljharb]: https://github.com/ljharb | ||
| [@manuth]: https://github.com/manuth | ||
@@ -241,2 +251,3 @@ [@maxkomarychev]: https://github.com/maxkomarychev | ||
| [@sergei-startsev]: https://github.com/sergei-startsev | ||
| [@silverwind]: https://github.com/silverwind | ||
| [@sompylasar]: https://github.com/sompylasar | ||
@@ -243,0 +254,0 @@ [@timkraut]: https://github.com/timkraut |
+4
-4
| { | ||
| "name": "eslint-module-utils", | ||
| "version": "2.12.0", | ||
| "version": "2.12.1", | ||
| "description": "Core utilities to support eslint-plugin-import and other module-related plugins.", | ||
@@ -66,7 +66,7 @@ "engines": { | ||
| "devDependencies": { | ||
| "@arethetypeswrong/cli": "^0.15.4", | ||
| "@ljharb/tsconfig": "^0.2.0", | ||
| "@arethetypeswrong/cli": "^0.18.2", | ||
| "@ljharb/tsconfig": "^0.3.2", | ||
| "@types/debug": "^4.1.12", | ||
| "@types/eslint": "^8.56.3", | ||
| "@types/node": "^20.11.20", | ||
| "@types/node": "^20.19.1", | ||
| "typescript": "next" | ||
@@ -73,0 +73,0 @@ }, |
+2
-2
@@ -36,3 +36,3 @@ 'use strict'; | ||
| // This is NOT supported in flat config! | ||
| if (typeof parserPath === 'string' && (/.*babel-eslint.*/).test(parserPath)) { | ||
| if (typeof parserPath === 'string' && parserPath.indexOf('babel-eslint') > -1) { | ||
| return getBabelEslintVisitorKeys(parserPath); | ||
@@ -89,3 +89,3 @@ } | ||
| /** @type {(path: string, context: import('eslint').Rule.RuleContext) => string | null | (import('eslint').Linter.ParserModule)} */ | ||
| /** @type {(path: string, context: import('eslint').Rule.RuleContext) => string | null | import('eslint').Linter.ParserModule | import('eslint').Linter.FlatConfigParserModule} */ | ||
| function getParser(path, context) { | ||
@@ -92,0 +92,0 @@ const parserPath = getParserPath(path, context); |
+1
-1
@@ -5,3 +5,3 @@ 'use strict'; | ||
| const pattern = /(^|;)\s*(export|import)((\s+\w)|(\s*[{*=]))|import\(/m; | ||
| const pattern = /(^|[;})])\s*(export|import)((\s+\w)|(\s*[{*=]))|import\(/m; | ||
| /** | ||
@@ -8,0 +8,0 @@ * detect possible imports/exports without a full parse. |
55054
0.75%