Skip to content

Commit

Permalink
added instructions to developer file
Browse files Browse the repository at this point in the history
  • Loading branch information
avifenesh committed Feb 20, 2024
1 parent 6eeafbe commit 3a9d61b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/lint-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion node/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a9d61b

Please sign in to comment.