Skip to content

fix: update source path in root eslint config to build directory (fix… - #971

Open
Margalit111 wants to merge 1 commit into
google:mainfrom
Margalit111:fix/eslint-config-path
Open

fix: update source path in root eslint config to build directory (fix…#971
Margalit111 wants to merge 1 commit into
google:mainfrom
Margalit111:fix/eslint-config-path

Conversation

@Margalit111

Copy link
Copy Markdown

Fixes #963

Description

The top-level eslint.config.js previously attempted to require ./src/index.js, which is excluded from the published package distribution (only ./build/ is included). This caused a MODULE_NOT_FOUND runtime error when consumers required gts/eslint.config.js.

This PR updates the require path to point to ./build/src/index.js and adjusts tsconfig.json to prevent build collisions.

Tests

  • Verified node -e "require('./eslint.config.js')" loads successfully.
  • Verified all tests pass via npm test.

@google-cla

google-cla Bot commented Sep 2, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

eslint.config.js at package root references nonexistent ./src/index.js

1 participant