include subfolders in eslint/prettier checks

This commit is contained in:
Damien Elmes 2021-11-02 12:50:27 +10:00
parent 2c248e6a3d
commit 0cd4c9431a
2 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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(