• If the given file path is within a node_modules folder, remove prefix up to and including the node_modules folder.

    This gives us very consistent paths for errors generated by the CLI.

    Parameters

    • __namedParameters: {
          currentFilePath: string;
          pluginLocations: {
              name: string;
              pluginPath: string;
          }[];
          projectRoot: string;
      }
      • currentFilePath: string
      • pluginLocations: {
            name: string;
            pluginPath: string;
        }[]
      • projectRoot: string

    Returns string