From e6789db15c8383351a18cc08de96cbc239bdd85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Fri, 25 Oct 2024 13:20:36 +0200 Subject: [PATCH] [Refactor] remove `object.assign` & `object.entries` dependencies --- __tests__/__util__/helpers/parsers.js | 3 +-- package.json | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/__tests__/__util__/helpers/parsers.js b/__tests__/__util__/helpers/parsers.js index fc75cf337..36753e913 100644 --- a/__tests__/__util__/helpers/parsers.js +++ b/__tests__/__util__/helpers/parsers.js @@ -1,6 +1,5 @@ import path from 'path'; import semver from 'semver'; -import entries from 'object.entries'; import { version } from 'eslint/package.json'; import flatMap from 'array.prototype.flatmap'; @@ -23,7 +22,7 @@ function minEcmaVersion(features, parserOptions) { const result = Math.max( ...[].concat( (parserOptions && parserOptions.ecmaVersion) || [], - flatMap(entries(minEcmaVersionForFeatures), (entry) => { + flatMap(Object.entries(minEcmaVersionForFeatures), (entry) => { const f = entry[0]; const y = entry[1]; return features.has(f) ? y : []; diff --git a/package.json b/package.json index 8c7ed047d..c866ee8b7 100644 --- a/package.json +++ b/package.json @@ -62,8 +62,6 @@ "jscodeshift": "^17.0.0", "minimist": "^1.2.8", "npmignore": "^0.3.1", - "object.assign": "^4.1.5", - "object.entries": "^1.1.8", "rimraf": "^3.0.2", "safe-publish-latest": "^2.0.0", "semver": "^6.3.1",