Skip to content

Commit d87a134

Browse files
authored
[js] Add eslint binary target for selenium-webdriver (#16992)
* [js] Add eslint binary target for selenium-webdriver Adds an eslint_binary target that can be run with `bazel run`
1 parent c6f0f45 commit d87a134

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

javascript/selenium-webdriver/BUILD.bazel

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,30 @@ copy_to_bin(
287287
srcs = [".prettierignore"],
288288
)
289289

290+
_ESLINT_DATA = [
291+
":eslint-config",
292+
":large-test-srcs",
293+
":node_modules/@eslint/js",
294+
":node_modules/eslint-plugin-mocha",
295+
":node_modules/eslint-plugin-n",
296+
":node_modules/eslint-plugin-no-only-tests",
297+
":node_modules/eslint-plugin-prettier",
298+
":node_modules/globals",
299+
":node_modules/jszip",
300+
":node_modules/tmp",
301+
":node_modules/ws",
302+
":package-json",
303+
":prod-src-files",
304+
":small-test-srcs",
305+
]
306+
307+
# Eslint binary with auto-fix support: bazel run //javascript/selenium-webdriver:eslint -- --fix .
308+
eslint_bin.eslint_binary(
309+
name = "eslint",
310+
chdir = package_name(),
311+
data = _ESLINT_DATA,
312+
)
313+
290314
# Internal jsdoc binary from npm - used by the docs rule
291315
jsdoc_bin.jsdoc_binary(
292316
name = "jsdoc_bin",

0 commit comments

Comments
 (0)