Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Extend JavaScript formatting to scripts directories

Manav Rathi1b4b98bc1e30
diff --git a/.github/checks/format-js/check.mjs b/.github/checks/format-js/check.mjs
index 88d7c6660c..d2867ebd50 100644
--- a/.github/checks/format-js/check.mjs
+++ b/.github/checks/format-js/check.mjs
@@ -27,7 +27,7 @@ try {
config,
write ? "--write" : "--check",
".github/{checks,scripts}/**/*.{js,cjs,mjs}",
- "**/checks/**/*.{js,cjs,mjs}",
+ "**/{checks,scripts}/**/*.{js,cjs,mjs}",
],
{ cwd: root, stdio: "inherit" },
);
diff --git a/.github/checks/format-js/test.mjs b/.github/checks/format-js/test.mjs
index a3f32040ff..a862c5e9fe 100644
--- a/.github/checks/format-js/test.mjs
+++ b/.github/checks/format-js/test.mjs
@@ -30,11 +30,14 @@ test("JS checks share web formatting across repository directories", (t) => {
".github/scripts/nested/example.cjs",
"rust/checks/example/check.js",
"nested/project/checks/example/test.mjs",
+ "rust/apps/example/scripts/nested/build.mjs",
+ "nested/project/scripts/example/test.mjs",
];
const ignored = [
"node_modules/example/checks/test.js",
"web/apps/example.js",
"rust/checks/example/test.py",
+ "infra/ml/test/tools/parity.js",
];
const source = "function example(){return true}\n";
for (const path of [...checked, ...ignored]) {