[js] Add eslint binary target for selenium-webdriver#16992
[js] Add eslint binary target for selenium-webdriver#16992titusfortner merged 3 commits intotrunkfrom
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.
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>
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