fix(ci): generate a fake order.json for CI linting
Node.js CI / Lint and Test (push) Successful in 58s

This commit is contained in:
2025-10-08 10:54:35 -07:00
parent f1419563fa
commit b404a9cfdf
3 changed files with 3 additions and 3 deletions
+3
View File
@@ -28,6 +28,9 @@ jobs:
- name: Install Dependencies
run: pnpm install
- name: Create fake order.json
run: echo '{"chapters":[{"modules":[{"blocks":["responsive-web-design",]}]}]}' > ./data/order.json
- name: Lint Source Files
run: pnpm run lint
-1
View File
@@ -6,7 +6,6 @@ export default [
rules: {
"no-console" : "off",
"no-await-in-loop": "off",
"comments/no-unlimited-disable": "off",
}
}
];
-2
View File
@@ -17,13 +17,11 @@ import order from "../data/order.json" assert { type: "json" };
import { options } from "./config/options.js";
import { starterText } from "./config/text.js";
/* eslint-disable -- Because we do not commit the order object, the CI cannot process this declaration.*/
const flattenedOrder: Array<string> = order.chapters.flatMap((chapter) => {
return chapter.modules.flatMap((module) => {
return module.blocks;
});
});
/* eslint-enable */
const readDirectoryRecursively = async(
directory: string,