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", "--ext",
".ts", ".ts",
"-c", "-c",
"$(location //ts:.eslintrc.js)", "$(location @ankidesktop//ts:.eslintrc.js)",
] + [native.package_name() + "/" + f for f in srcs], ] + [native.package_name() + "/" + f for f in srcs],
data = [ data = [
"//ts:.eslintrc.js", "@ankidesktop//ts:.eslintrc.js",
"//:package.json", "@ankidesktop//:package.json",
"@npm//@typescript-eslint/parser", "@npm//@typescript-eslint/parser",
"@npm//@typescript-eslint/eslint-plugin", "@npm//@typescript-eslint/eslint-plugin",
"@npm//eslint-plugin-compat", "@npm//eslint-plugin-compat",