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
- 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
- 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.
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-typescriptunconditionally generates.eslintignoreand.eslintrc.jsonfor 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
gapic-generator-typescript:templates/cjs/typescript_gapic/.eslintignore.njktemplates/cjs/typescript_gapic/.eslintrc.json.njktemplates/esm/typescript_gapic/.eslintignore.njktemplates/esm/typescript_gapic/.eslintrc.json.njkgapic-generator-typescriptand upgrade the pinned generator version across monorepolibrarian.yamlconfigurations.🚀 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
removeRedundantLinterFilescleanup function in Librarian's codebase can be deleted, simplifying the generation pipeline and improving execution speed.