Fix no-array-callback-reference eslint violations in the code base

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Fix no-array-callback-reference violations in the code base.

Why

Passing functions to iterator methods can cause issues when the function is changed without realizing that the iterator passes 2 more parameters to it.

Examples

Example of the code that needs a fix:

const encodedProjectId = projectId
      .split('/')
      .map(encodeURIComponent)
      .join('/');

Instead it should be:

const encodedProjectId = projectId
      .split('/')
      .map((fragment) => encodeURIComponent(fragment))
      .join('/');
Edited by 🤖 GitLab Bot 🤖