-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build(deps): bump eslint-plugin-import from 2.30.0 to 2.31.0 #1362
Merged
github-actions
merged 1 commit into
main
from
dependabot/npm_and_yarn/eslint-plugin-import-2.31.0
Nov 1, 2024
Merged
build(deps): bump eslint-plugin-import from 2.30.0 to 2.31.0 #1362
github-actions
merged 1 commit into
main
from
dependabot/npm_and_yarn/eslint-plugin-import-2.31.0
Nov 1, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependabot
bot
added
dependencies
Pull requests that update a dependency file
javascript
Pull requests that update Javascript code
labels
Nov 1, 2024
Diff between eslint-plugin-import 2.30.0 and 2.31.0diff --git a/lib/exportMap/builder.js b/lib/exportMap/builder.js
index v2.30.0..v2.31.0 100644
--- a/lib/exportMap/builder.js
+++ b/lib/exportMap/builder.js
@@ -93,5 +93,9 @@
exportMap.mtime = stats.mtime;
- exportCache.set(cacheKey, exportMap);
+ // If the visitor keys were not populated, then we shouldn't save anything to the cache,
+ // since the parse results may not be reliable.
+ if (exportMap.visitorKeys) {
+ exportCache.set(cacheKey, exportMap);
+ }
return exportMap;
}return _for;}() }, { key: 'parse', value: function () {function parse(
@@ -204,3 +208,3 @@
return exportMap;
}return parse;}() }]);return ExportMapBuilder;}();exports['default'] = ExportMapBuilder;
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leHBvcnRNYXAvYnVpbGRlci5qcyJdLCJuYW1lcyI6WyJ1bmFtYmlndW91cyIsImxvZyIsImV4cG9ydENhY2hlIiwiTWFwIiwidGh1bmtGb3IiLCJwIiwiY29udGV4dCIsIkV4cG9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QnVpbGRlci5idWlsZChhc3ROb2RlKTtcblxuICAgICAgaWYgKHZpc2l0b3JbYXN0Tm9kZS50eXBlXSkge1xuICAgICAgICB2aXNpdG9yW2FzdE5vZGUudHlwZV0uY2FsbCh2aXNpdG9yQnVpbGRlcik7XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICBpZiAoXG4gICAgICBpc0VzTW9kdWxlSW50ZXJvcFRydWUgLy8gZXNNb2R1bGVJbnRlcm9wIGlzIG9uIGluIHRzY29uZmlnXG4gICAgICAmJiBleHBvcnRNYXAubmFtZXNwYWNlLnNpemUgPiAwIC8vIGFueXRoaW5nIGlzIGV4cG9ydGVkXG4gICAgICAmJiAhZXhwb3J0TWFwLm5hbWVzcGFjZS5oYXMoJ2RlZmF1bHQnKSAvLyBhbmQgZGVmYXVsdCBpc24ndCBhZGRlZCBhbHJlYWR5XG4gICAgKSB7XG4gICAgICBleHBvcnRNYXAubmFtZXNwYWNlLnNldCgnZGVmYXVsdCcsIHt9KTsgLy8gYWRkIGRlZmF1bHQgZXhwb3J0XG4gICAgfVxuXG4gICAgaWYgKHVuYW1iaWd1b3VzbHlFU00pIHtcbiAgICAgIGV4cG9ydE1hcC5wYXJzZUdvYWwgPSAnTW9kdWxlJztcbiAgICB9XG4gICAgcmV0dXJuIGV4cG9ydE1hcDtcbiAgfVxufVxuIl19
\ No newline at end of file
+//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leHBvcnRNYXAvYnVpbGRlci5qcyJdLCJuYW1lcyI6WyJ1bmFtYmlndW91cyIsImxvZyIsImV4cG9ydENhY2hlIiwiTWFwIiwidGh1bmtGb3IiLCJwIiwiY29udGV4dCIsIkV4cG9ydE1hcEJ1aWxkZXIiLCJzb3VyY2UiLCJwYXRoIiwiY2FjaGVLZXkiLCJkaWdlc3QiLCJleHBvcnRNYXAiLCJnZXQiLCJzdGF0cyIsImZzIiwic3RhdFN5bm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FeHBvcnRNYXBCdWlsZGVyLFxuICAgICAgY29udGVudCxcbiAgICAgIGFzdCxcbiAgICAgIGlzRXNNb2R1bGVJbnRlcm9wVHJ1ZSxcbiAgICAgIHRodW5rRm9yLFxuICAgICk7XG4gICAgYXN0LmJvZHkuZm9yRWFjaChmdW5jdGlvbiAoYXN0Tm9kZSkge1xuICAgICAgY29uc3QgdmlzaXRvciA9IHZpc2l0b3JCdWlsZGVyLmJ1aWxkKGFzdE5vZGUpO1xuXG4gICAgICBpZiAodmlzaXRvclthc3ROb2RlLnR5cGVdKSB7XG4gICAgICAgIHZpc2l0b3JbYXN0Tm9kZS50eXBlXS5jYWxsKHZpc2l0b3JCdWlsZGVyKTtcbiAgICAgIH1cbiAgICB9KTtcblxuICAgIGlmIChcbiAgICAgIGlzRXNNb2R1bGVJbnRlcm9wVHJ1ZSAvLyBlc01vZHVsZUludGVyb3AgaXMgb24gaW4gdHNjb25maWdcbiAgICAgICYmIGV4cG9ydE1hcC5uYW1lc3BhY2Uuc2l6ZSA+IDAgLy8gYW55dGhpbmcgaXMgZXhwb3J0ZWRcbiAgICAgICYmICFleHBvcnRNYXAubmFtZXNwYWNlLmhhcygnZGVmYXVsdCcpIC8vIGFuZCBkZWZhdWx0IGlzbid0IGFkZGVkIGFscmVhZHlcbiAgICApIHtcbiAgICAgIGV4cG9ydE1hcC5uYW1lc3BhY2Uuc2V0KCdkZWZhdWx0Jywge30pOyAvLyBhZGQgZGVmYXVsdCBleHBvcnRcbiAgICB9XG5cbiAgICBpZiAodW5hbWJpZ3VvdXNseUVTTSkge1xuICAgICAgZXhwb3J0TWFwLnBhcnNlR29hbCA9ICdNb2R1bGUnO1xuICAgIH1cbiAgICByZXR1cm4gZXhwb3J0TWFwO1xuICB9XG59XG4iXX0=
\ No newline at end of file
diff --git a/lib/exportMap/childContext.js b/lib/exportMap/childContext.js
index v2.30.0..v2.31.0 100644
--- a/lib/exportMap/childContext.js
+++ b/lib/exportMap/childContext.js
@@ -10,24 +10,48 @@
-childContext;var _hash = require('eslint-module-utils/hash');var parserOptionsHash = '';var prevParserOptions = '';var settingsHash = '';var prevSettings = ''; /**
- * don't hold full context object in memory, just grab what we need.
- * also calculate a cacheKey, where parts of the cacheKey hash are memoized
- */function childContext(path, context) {var settings = context.settings,parserOptions = context.parserOptions,parserPath = context.parserPath;if (JSON.stringify(settings) !== prevSettings) {
- settingsHash = (0, _hash.hashObject)({ settings: settings }).digest('hex');
+
+
+
+
+
+
+
+
+childContext;var _hash = require('eslint-module-utils/hash');var optionsHash = '';var prevOptions = '';var settingsHash = '';var prevSettings = ''; // Replacer function helps us with serializing the parser nested within `languageOptions`.
+function stringifyReplacerFn(_, value) {if (typeof value === 'function') {return String(value);}return value;} /**
+ * don't hold full context object in memory, just grab what we need.
+ * also calculate a cacheKey, where parts of the cacheKey hash are memoized
+ */function childContext(path, context) {var settings = context.settings,parserOptions = context.parserOptions,parserPath = context.parserPath,languageOptions = context.languageOptions;if (JSON.stringify(settings) !== prevSettings) {settingsHash = (0, _hash.hashObject)({ settings: settings }).digest('hex');
prevSettings = JSON.stringify(settings);
}
- if (JSON.stringify(parserOptions) !== prevParserOptions) {
\ No newline at end of file
- parserOptionsHash = (0, _hash.hashObject)({ parserOptions: parserOptions }).digest('hex');
- prevParserOptions = JSON.stringify(parserOptions);
+ // We'll use either a combination of `parserOptions` and `parserPath` or `languageOptions`
+ // to construct the cache key, depending on whether this is using a flat config or not.
+ var optionsToken = void 0;
+ if (!parserPath && languageOptions) {
+ if (JSON.stringify(languageOptions, stringifyReplacerFn) !== prevOptions) {
+ optionsHash = (0, _hash.hashObject)({ languageOptions: languageOptions }).digest('hex');
+ prevOptions = JSON.stringify(languageOptions, stringifyReplacerFn);
+ }
+ // For languageOptions, we're just using the hashed options as the options token
+ optionsToken = optionsHash;
+ } else {
+ if (JSON.stringify(parserOptions) !== prevOptions) {
+ optionsHash = (0, _hash.hashObject)({ parserOptions: parserOptions }).digest('hex');
+ prevOptions = JSON.stringify(parserOptions);
+ }
+ // When not using flat config, we use a combination of the hashed parserOptions
+ // and parserPath as the token
+ optionsToken = String(parserPath) + optionsHash;
}
return {
- cacheKey: String(parserPath) + parserOptionsHash + settingsHash + String(path),
+ cacheKey: optionsToken + settingsHash + String(path),
settings: settings,
parserOptions: parserOptions,
parserPath: parserPath,
- path: path };
+ path: path,
+ languageOptions: languageOptions };
}
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9leHBvcnRNYXAvY2hpbGRDb250ZXh0LmpzIl0sIm5hbWVzIjpbImNoaWxkQ29udGV4dCIsInBhcnNlck9wdGlvbnNIYXNoIiwicHJldlBhcnNlck9wdGlvbnMiLCJzZXR0aW5nc0hhc2giLCJwcmV2U2V0dGluZ3MiLCJwYXRoIiwiY29udGV4dCIsInNldHRpbmdzIiwicGFyc2VyT3B0aW9ucyIsInBhcnNlclBhdGgiLCJKU09OIiwic3RyaW5naWZ5IiwiZGlnZXN0IiwiY2FjaGVLZXkiLCJTdHJpbmciXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBV3dCQSxZLENBWHhCLGdEQUVBLElBQUlDLG9CQUFvQixFQUF4QixDQUNBLElBQUlDLG9CQUFvQixFQUF4QixDQUNBLElBQUlDLGVBQWUsRUFBbkIsQ0FDQSxJQUFJQyxlQUFlLEVBQW5CLEMsQ0FFQTs7O21LQUllLFNBQVNKLFlBQVQsQ0FBc0JLLElBQXRCLEVBQTRCQyxPQUE1QixFQUFxQyxLQUMxQ0MsUUFEMEMsR0FDRkQsT0FERSxDQUMxQ0MsUUFEMEMsQ0FDaENDLGFBRGdDLEdBQ0ZGLE9BREUsQ0FDaENFLGFBRGdDLENBQ2pCQyxVQURpQixHQUNGSCxPQURFLENBQ2pCRyxVQURpQixDQUdsRCxJQUFJQyxLQUFLQyxTQUFMLENBQWVKLFFBQWYsTUFBNkJILFlBQWpDLEVBQStDO0FBQzdDRCxt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90IHVzaW5nIGZsYXQgY29uZmlnLCB3ZSB1c2UgYSBjb21iaW5hdGlvbiBvZiB0aGUgaGFzaGVkIHBhcnNlck9wdGlvbnNcbiAgICAvLyBhbmQgcGFyc2VyUGF0aCBhcyB0aGUgdG9rZW5cbiAgICBvcHRpb25zVG9rZW4gPSBTdHJpbmcocGFyc2VyUGF0aCkgKyBvcHRpb25zSGFzaDtcbiAgfVxuXG4gIHJldHVybiB7XG4gICAgY2FjaGVLZXk6IG9wdGlvbnNUb2tlbiArIHNldHRpbmdzSGFzaCArIFN0cmluZyhwYXRoKSxcbiAgICBzZXR0aW5ncyxcbiAgICBwYXJzZXJPcHRpb25zLFxuICAgIHBhcnNlclBhdGgsXG4gICAgcGF0aCxcbiAgICBsYW5ndWFnZU9wdGlvbnMsXG4gIH07XG59XG4iXX0=
\ No newline at end of file
diff --git a/lib/rules/consistent-type-specifier-style.js b/lib/rules/consistent-type-specifier-style.js
index v2.30.0..v2.31.0 100644
--- a/lib/rules/consistent-type-specifier-style.js
+++ b/lib/rules/consistent-type-specifier-style.js
@@ -1,8 +1,16 @@
-'use strict';var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
+'use strict';var _contextCompat = require('eslint-module-utils/contextCompat');
+var _docsUrl = require('../docsUrl');var _docsUrl2 = _interopRequireDefault(_docsUrl);function _interopRequireDefault(obj) {return obj && obj.__esModule ? obj : { 'default': obj };}
+
function isComma(token) {
return token.type === 'Punctuator' && token.value === ',';
}
+/**
+ * @param {import('eslint').Rule.Fix[]} fixes
+ * @param {import('eslint').Rule.RuleFixer} fixer
+ * @param {import('eslint').SourceCode.SourceCode} sourceCode
+ * @param {(ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier)[]} specifiers
+ * */
function removeSpecifiers(fixes, fixer, sourceCode, specifiers) {var _iteratorNormalCompletion = true;var _didIteratorError = false;var _iteratorError = undefined;try {
for (var _iterator = specifiers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {var specifier = _step.value;
@@ -16,4 +24,5 @@
}
+/** @type {(node: import('estree').Node, sourceCode: import('eslint').SourceCode.SourceCode, specifiers: (ImportSpecifier | ImportNamespaceSpecifier)[], kind: 'type' | 'typeof') => string} */
function getImportText(
node,
@@ -37,4 +46,5 @@
}
+/** @type {import('eslint').Rule.RuleModule} */
module.exports = {
meta: {
@@ -56,5 +66,5 @@
create: function () {function create(context) {
- var sourceCode = context.getSourceCode();
+ var sourceCode = (0, _contextCompat.getSourceCode)(context);
if (context.options[0] === 'prefer-inline') {
@@ -101,4 +111,5 @@
// prefer-top-level
return {
+ /** @param {import('estree').ImportDeclaration} node */
ImportDeclaration: function () {function ImportDeclaration(node) {
if (
@@ -119,7 +130,11 @@
}
+ /** @type {typeof node.specifiers} */
var typeSpecifiers = [];
+ /** @type {typeof node.specifiers} */
var typeofSpecifiers = [];
+ /** @type {typeof node.specifiers} */
var valueSpecifiers = [];
+ /** @type {typeof node.specifiers[number]} */
var defaultSpecifier = null;var _iteratorNormalCompletion2 = true;var _didIteratorError2 = false;var _iteratorError2 = undefined;try {
for (var _iterator2 = node.specifiers[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {var specifier = _step2.value;
@@ -143,4 +158,5 @@
if (typeSpecifiers.length + typeofSpecifiers.length === node.specifiers.length) {
+ /** @type {('type' | 'typeof')[]} */
// all specifiers have inline specifiers - so we replace the entire import
var kind = [].concat(
@@ -161,61 +177,62 @@
} else {
// remove specific specifiers and insert new imports for them
- var _iteratorNormalCompletion3 = true;var _didIteratorError3 = false;var _iteratorError3 = undefined;try {for (var _iterator3 = typeSpecifiers.concat(typeofSpecifiers)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {var _specifier = _step3.value;
- context.report({
- node: _specifier,
- message: 'Prefer using a top-level {{kind}}-only import instead of inline {{kind}} specifiers.',
- data: {
- kind: _specifier.importKind },
+ typeSpecifiers.concat(typeofSpecifiers).forEach(function (specifier) {
+ context.report({
+ node: specifier,
+ message: 'Prefer using a top-level {{kind}}-only import instead of inline {{kind}} specifiers.',
+ data: {
+ kind: specifier.importKind },
- fix: function () {function fix(fixer) {
- var fixes = [];
+ fix: function () {function fix(fixer) {
+ /** @type {import('eslint').Rule.Fix[]} */
+ var fixes = [];
- // if there are no value specifiers, then the other report fixer will be called, not this one
+ // if there are no value specifiers, then the other report fixer will be called, not this one
- if (valueSpecifiers.length > 0) {
- // import { Value, type Type } from 'mod';
+ if (valueSpecifiers.length > 0) {
+ // import { Value, type Type } from 'mod';
- // we can just remove the type specifiers
- removeSpecifiers(fixes, fixer, sourceCode, typeSpecifiers);
- removeSpecifiers(fixes, fixer, sourceCode, typeofSpecifiers);
+ // we can just remove the type specifiers
+ removeSpecifiers(fixes, fixer, sourceCode, typeSpecifiers);
+ removeSpecifiers(fixes, fixer, sourceCode, typeofSpecifiers);
- // make the import nicely formatted by also removing the trailing comma after the last value import
- // eg
- // import { Value, type Type } from 'mod';
- // to
- // import { Value } from 'mod';
- // not
- // import { Value, } from 'mod';
- var maybeComma = sourceCode.getTokenAfter(valueSpecifiers[valueSpecifiers.length - 1]);
- if (isComma(maybeComma)) {
- fixes.push(fixer.remove(maybeComma));
- }
- } else if (defaultSpecifier) {
- // import Default, { type Type } from 'mod';
+ // make the import nicely formatted by also removing the trailing comma after the last value import
+ // eg
+ // import { Value, type Type } from 'mod';
+ // to
+ // import { Value } from 'mod';
+ // not
+ // import { Value, } from 'mod';
+ var maybeComma = sourceCode.getTokenAfter(valueSpecifiers[valueSpecifiers.length - 1]);
+ if (isComma(maybeComma)) {
+ fixes.push(fixer.remove(maybeComma));
+ }
+ } else if (defaultSpecifier) {
\ No newline at end of file
+ // import Default, { type Type } from 'mod';
- // remove the entire curly block so we don't leave an empty one behind
- // NOTE - the default specifier *must* be the first specifier always!
- // so a comma exists that we also have to clean up or else it's bad syntax
- var comma = sourceCode.getTokenAfter(defaultSpecifier, isComma);
- var closingBrace = sourceCode.getTokenAfter(
- node.specifiers[node.specifiers.length - 1],
- function (token) {return token.type === 'Punctuator' && token.value === '}';});
+ // remove the entire curly block so we don't leave an empty one behind
+ // NOTE - the default specifier *must* be the first specifier always!
+ // so a comma exists that we also have to clean up or else it's bad syntax
+ var comma = sourceCode.getTokenAfter(defaultSpecifier, isComma);
+ var closingBrace = sourceCode.getTokenAfter(
+ node.specifiers[node.specifiers.length - 1],
+ function (token) {return token.type === 'Punctuator' && token.value === '}';});
- fixes.push(fixer.removeRange([
- comma.range[0],
- closingBrace.range[1]]));
+ fixes.push(fixer.removeRange([
+ comma.range[0],
+ closingBrace.range[1]]));
- }
+ }
- return fixes.concat(
- // insert the new imports after the old declaration
- fixer.insertTextAfter(node, '\n' + String(newImports)));
+ return fixes.concat(
+ // insert the new imports after the old declaration
+ fixer.insertTextAfter(node, '\n' + String(newImports)));
- }return fix;}() });
+ }return fix;}() });
- }} catch (err) {_didIteratorError3 = true;_iteratorError3 = err;} finally {try {if (!_iteratorNormalCompletion3 && _iterator3['return']) {_iterator3['return']();}} finally {if (_didIteratorError3) {throw _iteratorError3;}}}
+ });
}
}return ImportDeclaration;}() };
}return create;}() };
-//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9ydWxlcy9jb25zaXN0ZW50LXR5cGUtc3BlY2lmaWVyLXN0eWxlLmpzIl0sIm5hbWVzIjpbImlzQ29tbWEiLCJ0b2tlbiIsInR5cGUiLCJ2YWx1ZSIsInJlbW92ZVNwZWNpZmllcnMiLCJmaXhlcyIsImZpeGVyIiwic291cmNlQ29kZSIsInNwZWNpZmllcnMiLCJzcGVjaWZpZXIiLCJnZXRUb2tlbkFmdGVyIiwicHVzaCIsInJlbW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gJ3ByZWZlci1pbmxpbmUnKSB7XG4gICAgICByZXR1cm4ge1xuICAgICAgICBJbXBvcnREZWNsYXJhdGlvbihub2RlKSB7XG4gICAgICAgICAgaWYgKG5vZGUuaW1wb3J0S2luZCA9PT0gJ3ZhbHVlJyB8fCBub2RlLmltcG9ydEtpbmQgPT0gbnVsbCkge1xuICAgICAgICAgICAgLy8gdG9wLWxldmVsIHZhbHVlIC8gdW5rbm93biBpcyB2YWxpZFxuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIC8vIG5vIHNwZWNpZmllcnMgKGltcG9ydCB0eXBlIHt9IGZyb20gJycpIGhhdmUgbm8gc3BlY2lmaWVycyB0byBtYXJrIGFzIGlubGluZVxuICAgICAgICAgICAgbm9kZS5zcGVjaWZpZXJzLmxlbmd0aCA9PT0gMFxuICAgICAgICAgICAgfHwgbm9kZS5zcGVjaWZpZXJzLmxlbmd0aCA9PT0gMVxuICAgICAgICAgICAgLy8gZGVmYXVsdCBpbXBvcnRzIGFyZSBib3RoIFwiaW5saW5lXCIgYW5kIFwidG9wLWxldmVsXCJcbiAgICAgICAgICAgICYmIChcbiAgICAgICAgICAgICAgbm9kZS5zcGVjaWZpZXJzWzBdLnR5cGUgPT09ICdJbXBvcnREZWZhdWx0U3BlY2lmaWVyJ1xuICAgICAgICAgICAgICAvLyBuYW1lc3BhY2UgaW1wb3J0cyBhcmUgYm90aCBcImlubGluZVwiIGFuZCBcInRvcC1sZXZlbFwiXG4gICAgICAgICAgICAgIHx8IG5vZGUuc3BlY2lmaWVyc1swXS50eXBlID09PSAnSW1wb3J0TmFtZXNwYWNlU3BlY2lmaWVyJ1xuICAgICAgICAgICAgKVxuICAgICAgICAgICkge1xuICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGNvbnRleHQucmVwb3J0KHtcbiAgICAgICAgICAgIG5vZGUsXG4gICAgICAgICAgICBtZXNzYWdlOiAnUHJlZmVyIHVzaW5nIGlubGluZSB7e2tpbmR9fSBzcGVjaWZpZXJzIGluc3RlYWQgb2YgYSB0b3AtbGV2ZWwge3traW5kfX0tb25seSBpbXBvcnQuJyxcbiAgICAgICAgICAgIGRhdGE6IHtcbiAgICAgICAgICAgICAga2luZDogbm9kZS5pbXBvcnRLaW5kLFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIGZpeChmaXhlcikge1xuICAgICAgICAgICAgICBjb25zdCBraW5kVG9rZW4gPSBzb3VyY2VDb2RlLmdldEZpcnN0VG9rZW4obm9kZSwgeyBza2lwOiAxIH0pO1xuXG4gICAgICAgICAgICAgIHJldHVybiBbXS5jb25jYXQoXG4gICAgICAgICAgICAgICAga2luZFRva2VuID8gZml4ZXIucmVtb3ZlKGtpbmRUb2tlbikgOiBbXSxcbiAgICAgICAgICAgICAgICBub2RlLnNwZWNpZmllcnMubWFwKChzcGVjaWZpZXIpID0+IGZpeGVyLmluc2VydFRleHRCZWZvcmUoc3BlY2lmaWVyLCBgJHtub2RlLmltcG9ydEtpbmR9IGApKSxcbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0sXG4gICAgICB9O1xuICAgIH1cblxuICAgIC8vIHByZWZlci10b3AtbGV2ZWxcbiAgICByZXR1cm4 (too long so truncated)
Command detailsnpm diff --diff=eslint-plugin-import@2.30.0 --diff=eslint-plugin-import@2.31.0 --diff-unified=2 See also the Reported by ybiquitous/npm-diff-action@v1.6.0 (Node.js 22.11.0 and npm 10.9.0) |
dependabot
bot
force-pushed
the
dependabot/npm_and_yarn/eslint-plugin-import-2.31.0
branch
from
November 1, 2024 03:07
8cb3346
to
14813c6
Compare
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.30.0 to 2.31.0. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.30.0...v2.31.0) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
bot
force-pushed
the
dependabot/npm_and_yarn/eslint-plugin-import-2.31.0
branch
from
November 1, 2024 03:08
14813c6
to
c3c2891
Compare
github-actions
bot
deleted the
dependabot/npm_and_yarn/eslint-plugin-import-2.31.0
branch
November 1, 2024 03:09
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
dependencies
Pull requests that update a dependency file
javascript
Pull requests that update Javascript code
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps eslint-plugin-import from 2.30.0 to 2.31.0.
Release notes
Sourced from eslint-plugin-import's releases.
... (truncated)
Changelog
Sourced from eslint-plugin-import's changelog.
Commits
91f809b
v2.31.03f1ac24
[utils] [refactor]parse
: avoid using a regex hered225176
[New]extensions
: add thecheckTypeImports
option5a51b9a
[Tests]rule-tester
: try this babel class workaroundd66cde0
[New] support eslint v9d27a639
[Fix] adjust "is source type module" checks for flat config1fa8a07
[Refactor] createsourceType
helper0bc1355
[Tests]no-default-export
,no-named-export
: add test cases with non-modu...55fa203
[Tests]no-default-export
,no-named-export
: add test case6be20df
[Docs]no-restricted-paths
: fix grammarDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)