include subfolders in eslint/prettier checks
This commit is contained in:
parent
2c248e6a3d
commit
0cd4c9431a
@ -3,7 +3,7 @@ load("@npm//eslint:index.bzl", _eslint_test = "eslint_test")
|
||||
def eslint_test(name = "eslint", srcs = None, exclude = []):
|
||||
if not srcs:
|
||||
srcs = native.glob([
|
||||
"*.ts",
|
||||
"**/*.ts",
|
||||
], exclude = exclude)
|
||||
_eslint_test(
|
||||
name = name,
|
||||
|
@ -6,10 +6,10 @@ load(
|
||||
def prettier_test(name = "format_check", srcs = None, exclude = [], **kwargs):
|
||||
if not srcs:
|
||||
srcs = native.glob([
|
||||
"*.ts",
|
||||
"*.js",
|
||||
"*.svelte",
|
||||
"*.md",
|
||||
"**/*.ts",
|
||||
"**/*.js",
|
||||
"**/*.svelte",
|
||||
"**/*.md",
|
||||
], exclude = exclude)
|
||||
|
||||
_prettier_test(
|
||||
|
Loading…
Reference in New Issue
Block a user