This commit is contained in:
2026-03-15 12:22:42 +01:00
parent cd99275933
commit 311ba5e7f3
558 changed files with 55182 additions and 22981 deletions

View File

@@ -4332,7 +4332,12 @@ class FlatCompat {
throw new TypeError("Missing parameter 'allConfig' in FlatCompat constructor.");
}
return allConfig;
// remove name property if it exists
const config = { ...allConfig };
delete config.name;
return config;
},
getEslintRecommendedConfig() {
@@ -4340,7 +4345,12 @@ class FlatCompat {
throw new TypeError("Missing parameter 'recommendedConfig' in FlatCompat constructor.");
}
return recommendedConfig;
// remove name property if it exists
const config = { ...recommendedConfig };
delete config.name;
return config;
}
});
}