Skip to content

chore: clean up per-package eslintrc configurations#8266

Open
shivanee-p wants to merge 4 commits into
mainfrom
shivaneep-eslint-cleanup-gapic
Open

chore: clean up per-package eslintrc configurations#8266
shivanee-p wants to merge 4 commits into
mainfrom
shivaneep-eslint-cleanup-gapic

Conversation

@shivanee-p
Copy link
Copy Markdown
Contributor

@shivanee-p shivanee-p commented May 13, 2026

Remove the per-package generation logic for the .eslintignore and .eslintrc.json files within the GAPIC libraries

This PR cleans up legacy per-package linter configurations across the generated GAPIC libraries to prepare for linter implementation under ESLint v10. The individual per-package configurations are being consolidated into a unified, top-level flat configuration architecture to reduce merge conflicts and maintenance overhead.

Fixes #4585 🦕

@shivanee-p shivanee-p requested a review from a team as a code owner May 13, 2026 21:23
@shivanee-p shivanee-p requested a review from quirogas May 13, 2026 21:23
@shivanee-p shivanee-p marked this pull request as draft May 13, 2026 21:23
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces multiple .eslintrc.json files with a new packages/eslint.config.mjs flat configuration. The review feedback highlights several critical issues: the new configuration lacks the previously used gts rules, includes redundant default ignores for node_modules, and excludes system-test directories from linting. Furthermore, the reviewer noted that this configuration must be explicitly imported into a root-level file to be active.

Comment thread packages/eslint.config.mjs Outdated
@shivanee-p shivanee-p force-pushed the shivaneep-eslint-cleanup-gapic branch from 47e0339 to 1b9ba65 Compare May 13, 2026 21:26
@shivanee-p
Copy link
Copy Markdown
Contributor Author

/gemini review

@shivanee-p shivanee-p changed the title style(packages): clean up legacy per-package eslintrc configurations chore: clean up per-package eslintrc configurations May 13, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes several .eslintrc.json configuration files and templates across various packages and the generator. The review feedback highlights a critical concern: deleting these templates without updating the generator's source code will likely result in "file not found" errors during execution. Additionally, the reviewer pointed out that the cleanup is incomplete, as .eslintignore files and templates remain despite the PR description stating they would be removed.

I am having trouble creating individual review comments. Click here to see my feedback.

core/generator/gapic-generator-typescript/templates/cjs/typescript_gapic/.eslintrc.json.njk (1-4)

high

Deleting these template files without updating the generator's source code (the logic that explicitly renders these templates) will likely cause the generator to fail with "file not found" errors. The PR description mentions removing the "generation logic", but no changes to the generator's source code (e.g., .ts files) are included in this diff to remove the references to these templates.

core/generator/gapic-generator-typescript/templates/cjs/typescript_gapic/.eslintrc.json.njk (1-4)

medium

The pull request description states that the generation logic for both .eslintignore and .eslintrc.json files is being removed. However, the .eslintignore.njk templates (in both cjs and esm directories) are not deleted in this diff. These should be removed to align with the PR's objective and ensure that no legacy configuration files are generated in the future.

packages/google-analytics-data/.eslintrc.json (1-4)

medium

The PR description mentions removing both .eslintignore and .eslintrc.json files. While the .eslintrc.json files are being deleted from these packages, the corresponding .eslintignore files are not included in the diff. If these files exist in the package directories, they should also be removed to complete the cleanup of legacy per-package configurations.

@shivanee-p shivanee-p force-pushed the shivaneep-eslint-cleanup-gapic branch 3 times, most recently from 03e51c1 to e79b47c Compare May 13, 2026 21:44
@shivanee-p shivanee-p marked this pull request as ready for review May 13, 2026 21:44
@shivanee-p shivanee-p force-pushed the shivaneep-eslint-cleanup-gapic branch from e79b47c to d0a15cf Compare May 14, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

google-cloud-node: do not generate per-library config files that belong at the repo root

1 participant