Skip to content

Track removal of legacy per-package linter templates in gapic-generator-typescript #8286

Description

@quirogas

Following the implementation of the centralized monorepo linter configuration in #8266, individual per-package linter configuration files are redundant and conflict with shared top-level rules.

Currently, gapic-generator-typescript unconditionally generates .eslintignore and .eslintrc.json for every package. To prevent untracked file pollution during automated generation sweeps, Librarian currently implements a temporary post-processing cleanup workaround (removeRedundantLinterFiles) to explicitly delete these files.

🛠️ Action Items

  1. Update Generator: Delete the legacy Nunjucks templates from gapic-generator-typescript:
    • templates/cjs/typescript_gapic/.eslintignore.njk
    • templates/cjs/typescript_gapic/.eslintrc.json.njk
    • templates/esm/typescript_gapic/.eslintignore.njk
    • templates/esm/typescript_gapic/.eslintrc.json.njk
  2. Release & Upgrade: Tag a new release of gapic-generator-typescript and upgrade the pinned generator version across monorepo librarian.yaml configurations.

🚀 Impact on Librarian Generate

Once the generator patch is released and upgraded, Librarian will no longer need to perform post-processing linter sweeps. The temporary removeRedundantLinterFiles cleanup function in Librarian's codebase can be deleted, simplifying the generation pipeline and improving execution speed.

Activity

  1. shivanee-p commented on Jun 24, 2026

    @shivanee-p
    Contributor

    This issue has been resolved with the new generator release 4.12.0 and the owlbot regeneration PR's merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions