use absolute package paths in eslint.bzl

This commit is contained in:
Damien Elmes 2021-11-02 13:49:19 +10:00
parent c988116da5
commit 5e15ab0ebb

View File

@ -12,11 +12,11 @@ def eslint_test(name = "eslint", srcs = None, exclude = []):
"--ext",
".ts",
"-c",
"$(location //ts:.eslintrc.js)",
"$(location @ankidesktop//ts:.eslintrc.js)",
] + [native.package_name() + "/" + f for f in srcs],
data = [
"//ts:.eslintrc.js",
"//:package.json",
"@ankidesktop//ts:.eslintrc.js",
"@ankidesktop//:package.json",
"@npm//@typescript-eslint/parser",
"@npm//@typescript-eslint/eslint-plugin",
"@npm//eslint-plugin-compat",