Skip to content

infra: add test, typecheck, and lint scripts#42

Open
gerani1 wants to merge 1 commit into
LabsCrypt:mainfrom
gerani1:infra/add-test-typecheck-lint-scripts
Open

infra: add test, typecheck, and lint scripts#42
gerani1 wants to merge 1 commit into
LabsCrypt:mainfrom
gerani1:infra/add-test-typecheck-lint-scripts

Conversation

@gerani1

@gerani1 gerani1 commented Jun 23, 2026

Copy link
Copy Markdown
  • Add test and test:watch scripts using Jest
  • Add typecheck script running tsc --noEmit
  • Update lint to run ESLint; move Prettier check to lint:format
  • Document all new scripts in README "Available Scripts" section

Closes #12

- Add `test` and `test:watch` scripts using Jest
- Add `typecheck` script running `tsc --noEmit`
- Update `lint` to run ESLint; move Prettier check to `lint:format`
- Document all new scripts in README "Available Scripts" section

Closes LabsCrypt#12

@ogazboiz ogazboiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice to get test/typecheck/lint scripts in, and the test/typecheck/lint:format ones are good (they run and match the real tooling). one thing to change:

  1. package.json:9 repoints the existing lint gate "lint": "prettier --check ." to "lint": "eslint .", but npm run lint now fails out of the box (42 eslint errors, all pre-existing on main and unfixed), so a fresh checkout has a red canonical lint command. please keep "lint": "prettier --check ." (that's the gate the repo uses) and expose eslint under a separate name, e.g. "lint:eslint": "eslint .". only flip lint -> eslint in the same PR that actually clears those 42 errors.

the README line advertising npm run lint as eslint should match whatever you land. otherwise solid, small PR.

if you want to keep contributing, join us on Telegram: https://t.me/+DOylgFv1jyJlNzM0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Infra] Add test, typecheck, and lint scripts and make lint run ESLint

3 participants