-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[js] Add eslint binary target for selenium-webdriver #16992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Latest suggestions up to a3d9338
Previous suggestionsSuggestions up to commit 8593814
|
||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds an eslint_binary Bazel target for the selenium-webdriver package, enabling developers to run ESLint with the --fix flag via bazel run //javascript/selenium-webdriver:eslint -- --fix .. This complements the existing eslint_test target used for CI validation.
Changes:
- Defines
_ESLINT_DATAlist containing ESLint configuration, plugin dependencies, and source files - Creates
eslint_binarytarget usingeslint_bin.eslint_binaryrule from the npm package
Adds an eslint_binary target that can be run with `bazel run` to lint and auto-fix JavaScript code. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
User description
Linting linting linting
💥 What does this PR do?
Adds an
eslint_binarytarget forselenium-webdriver:🔧 Implementation Notes
eslint_testtargeteslint_bin.eslint_binaryfrom@npm//javascript/selenium-webdriver:eslint/package_json.bzlselenium-webdriveris the only directory that uses itgrid-uineeds a separate implementation & everything else is done with closure and can't be linted like this💡 Additional Considerations
eslint_testtarget continues to work for CI validation; this adds the ability to run eslint with--fix🔄 Types of changes
PR Type
Enhancement
Description
Adds eslint_binary target for selenium-webdriver package
Enables linting and auto-fixing JavaScript code via bazel run
Reuses existing eslint configuration and plugin dependencies
Allows developers to run
bazel run //javascript/selenium-webdriver:eslint -- --fix .Diagram Walkthrough
File Walkthrough
BUILD.bazel
Add eslint binary target with dependenciesjavascript/selenium-webdriver/BUILD.bazel
_ESLINT_DATAlist containing eslint configuration and plugindependencies
eslint_binarytarget usingeslint_bin.eslint_binaryruledependencies
bazel run //javascript/selenium-webdriver:eslint