Add regex eslint plugin, fix lints (#59371)

This commit is contained in:
Jake Bailey
2024-08-13 14:16:53 -07:00
committed by GitHub
parent a5e0385edf
commit 195203e971
47 changed files with 236 additions and 92 deletions

View File

@@ -5041,7 +5041,7 @@ export class ProjectService {
if (
!pluginConfigEntry.name ||
isExternalModuleNameRelative(pluginConfigEntry.name) ||
/[\\/]\.\.?($|[\\/])/.test(pluginConfigEntry.name)
/[\\/]\.\.?(?:$|[\\/])/.test(pluginConfigEntry.name)
) {
this.logger.info(`Skipped loading plugin ${pluginConfigEntry.name || JSON.stringify(pluginConfigEntry)} because only package name is allowed plugin name`);
return;