anki/ts/prettier.bzl

20 lines
480 B
Python
Raw Normal View History

load(
"@npm//prettier:index.bzl",
_prettier_test = "prettier_test",
)
def prettier_test(name = "format", srcs = [], **kwargs):
_prettier_test(
name = name,
args = [
"--config",
"$(location //ts:.prettierrc)",
"--check",
] + [native.package_name() + "/" + f for f in srcs],
data = [
"//ts:.prettierrc",
"@npm//prettier-plugin-svelte",
] + srcs,
**kwargs
)