File tree Expand file tree Collapse file tree
javascript/selenium-webdriver Expand file tree Collapse file tree Original file line number Diff line number Diff 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
291315jsdoc_bin .jsdoc_binary (
292316 name = "jsdoc_bin" ,
You can’t perform that action at this time.
0 commit comments