summaryrefslogtreecommitdiff
path: root/eslint.config.js
AgeCommit message (Collapse)Author
2025-08-21chore(lint config): add test-utils to eslint config (#6768)Adam Weidman
2025-08-12chore(usage telemetry): Freshen up Clearcut logging (#6013)Richie Foreman
Co-authored-by: christine betts <[email protected]> Co-authored-by: Jacob Richman <[email protected]> Co-authored-by: matt korwel <[email protected]>
2025-08-06Add integration test for maximum schema depth error handling (#5685)Jacob MacDonald
2025-08-06bug(tests): fix test errors (#5678)Lee James
Co-authored-by: matt korwel <[email protected]>
2025-08-03Generate NOTICES.TXT and surface via command (#5310)Shreya Keshive
2025-07-21fix(eslint): remove custom rule in favor of `eslint-plugin-import` (#3012)Pascal Birchler
Co-authored-by: Sandy Tao <[email protected]>
2025-07-14Introduce VSCode companion extension (#3917)christine betts
2025-06-16Preflight and integration npx (#1096)matt korwel
2025-06-13Add a local telemetry launcher (#1015)Keir Mierle
2025-06-12Improve the performance of filename completion over large repositories. (#938)DeWitt Clinton
2025-06-08fix(deps): externalize tree-sitter (#840)matt korwel
Submitting without approval to fix broken deployment on main. But also, we should lock this down.
2025-05-30Rename server->core (#638)Tommaso Sciortino
2025-05-23infra: emit errors on no-explicit-any eslint rule (#516)Brandon Keiji
2025-05-23feat: Enable npx execution directly from GitHub URLTaylor Mullen
This commit modifies the packaging setup to allow the CLI to be executed directly from its GitHub URL using `npx`, for example: `npx https://github.com/google-gemini/gemini-cli` (once merged to main). This is achieved without requiring the bundle to be checked into the repository. Key changes and motivations: - Modify `scripts.prepare` to run `npm run bundle`: Ensures the CLI bundle is generated automatically when `npx` installs the package from a git URL. This replaces previous approaches (e.g., using `prepack`) which were not consistently triggered in the `npx` environment. - Update `scripts.bundle` to use a direct path for `esbuild` and externalize `sqlite3`: Using `node_modules/.bin/esbuild` provides a more reliable way to invoke the bundler. Externalizing `sqlite3` is crucial for correctly handling its native addon, preventing runtime errors. - Add `bin`, `files`, and root `sqlite3` dependency: - The `bin` field defines the `gemini` command. - The `files` array ensures the generated `bundle/` directory is recognized by npm. - `sqlite3` is added as a root dependency to ensure it's installed by `npx` when `gemini-code` is fetched, allowing the externalized module to be resolved. These changes collectively ensure that the necessary build artifacts are created on-the-fly during `npx` installation, providing a seamless execution experience directly from the GitHub repository URL.
2025-05-20Fix: Configure React version for ESLint to resolve preflight warnings (#449)Allen Hutchison
2025-05-18Refactor: Convert copy_files.cjs to ES module syntaxTaylor Mullen
- Converted scripts/copy_files.cjs to use ES module syntax (renaming to copy_files.js). - This change aligns with the project's preference for ES modules over CommonJS for better modernity and future-proofing. - Updated eslint.config.js to remove the .cjs override. - Adjusted scripts/build_package.sh to call the new .js file.
2025-05-16Fix: Use Node.js script for cross-platform file copying in buildTaylor Mullen
- Replaces the rsync command in the build_package.sh script with a Node.js script (copy_files.cjs) to handle copying necessary files (e.g., .md, .json, .sb) during the build process. - Addresses an issue where the build would fail on systems that do not have rsync installed (e.g., some Windows environments or minimal Linux distributions) by using a Node.js script, providing a cross-platform solution as Node.js is already a project dependency. - Updates the ESLint configuration to correctly lint .cjs files as CommonJS modules. Fixes https://github.com/google-gemini/gemini-cli/issues/387
2025-05-06fix: use flat config for react eslint plugin (#265)Brandon Keiji
2025-04-24general rules should apply to whole project (#159)Olcan
* general rules should apply to whole project * Merge remote-tracking branch 'origin/main' into fix_eslint * lint fixes under server package
2025-04-22fix: support node globals in scripts (#109)Brandon Keiji
2025-04-21feat: add custom eslint rule for cross-package imports (#77)Brandon Keiji
2025-04-20add linter for checking license headers (and eslint --fix target to match, ↵Tyler
and fix missing license headers while we're here) (#62)
2025-04-19Starting to modularize into separate cli / server packages. (#55)Evan Senter
* Starting to move a lot of code into packages/server * More of the massive refactor, builds and runs, some issues though. * Fixing outstanding issue with double messages. * Fixing a minor UI issue. * Fixing the build post-merge. * Running formatting. * Addressing comments.
2025-04-18Add apache2 SPDX headers to all source files (#48)Tyler
2025-04-18Initial auto-fixing of linting errors.Taylor Mullen
- This is the result of runing `npm lint -- -fix`
2025-04-17Run `npm run format`Taylor Mullen
- Also updated README.md accordingly. Part of https://b.corp.google.com/issues/411384603
2025-04-17Configure linter + prettier.Taylor Mullen
- This is based on existing expectations for TS code in Google-esc repos. - First part of the change (we have not run any linter or formatting commands). After this changeset goes in I'll do a mass changeset push. Fixes https://b.corp.google.com/issues/411384603