From 3a9d61bc654a7a2a4cf03c8f517e5b5552c8386f Mon Sep 17 00:00:00 2001 From: avifenesh Date: Tue, 20 Feb 2024 07:48:33 +0000 Subject: [PATCH] added instructions to developer file --- .github/workflows/lint-ts.yml | 14 ++++++++++++-- node/DEVELOPER.md | 4 +++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint-ts.yml b/.github/workflows/lint-ts.yml index 6e82880399..6748adafaf 100644 --- a/.github/workflows/lint-ts.yml +++ b/.github/workflows/lint-ts.yml @@ -40,7 +40,17 @@ jobs: - name: lint ts run: | - npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-tsdoc eslint typescript eslint-plugin-import@latest eslint-config-prettier prettier + npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-tsdoc eslint typescript eslint-plugin-import@latest eslint-config-prettier npm i npx eslint . - npm run prettier:check:ci + + - name: Iterate over folders and prettier + run: | + folders=("node" "benchmarks/node" "benchmarks/utilities") + for folder in "${folders[@]}"; do + echo "Linting ${folder}..." + cd "${folder}" + npm install + npm run prettier:check:ci + cd .. + done diff --git a/node/DEVELOPER.md b/node/DEVELOPER.md index 6520f80270..b040ac48e2 100644 --- a/node/DEVELOPER.md +++ b/node/DEVELOPER.md @@ -149,9 +149,11 @@ Development on the Node wrapper may involve changes in either the TypeScript or 1. TypeScript ```bash # Run from the `node` folder - npm install eslint-plugin-import@latest @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-tsdoc eslint typescript eslint-plugin-import@latest eslint-config-prettier + npm install eslint-plugin-import@latest @typescript-eslint/parser @typescript-eslint/eslint-plugin eslint-plugin-tsdoc eslint typescript eslint-plugin-import@latest eslint-config-prettier prettier npm i npx eslint . --max-warnings=0 + npm run prettier:format + npm run prettier:check:ci ``` 2. Rust ```bash