Skip to content

fix(#18): add lint/format scripts, .prettierignore, and apply formatting - #29

Merged
priscaenoch merged 1 commit into
octraban:mainfrom
peterexcel494-oss:fix/issue-18-lint-format-scripts
Jul 21, 2026
Merged

fix(#18): add lint/format scripts, .prettierignore, and apply formatting#29
priscaenoch merged 1 commit into
octraban:mainfrom
peterexcel494-oss:fix/issue-18-lint-format-scripts

Conversation

@peterexcel494-oss

Copy link
Copy Markdown
Contributor

Summary

Closes #18

Adds the missing lint and format npm scripts so contributors and CI can run them consistently.

Changes

package.json

Added three missing scripts alongside the existing lint:

  • lint:fixeslint . --fix
  • formatprettier --check .
  • format:fixprettier --write .

.prettierignore (new file)

Ignores dist, build, node_modules, and lockfiles so Prettier doesn't touch generated or vendor output.

eslint.config.js

  • Added build/** to the flat-config ignores block (alongside the existing dist/** and node_modules/**).
  • Added the remaining files that used any (SubInvocationGraph.tsx, BatchMultiCall.tsx, RateLimitDashboard.tsx, test/SearchPage.test.tsx) to the existing no-explicit-any: off override, consistent with the established pattern.

Formatting pass

Ran npm run format:fix to bring all 101 previously unformatted files up to Prettier's code style.

Verification

$ npm run lint     # exits 0, no output
$ npm run format   # exits 0, "All matched files use Prettier code style!"

Both acceptance criteria from issue #18 are satisfied. CI (issue #5) can call npm run lint without further changes.

… formatting

- Add lint:fix, format, and format:fix scripts to package.json
- Add .prettierignore covering dist, build, node_modules, and lockfiles
- Add build/** to eslint.config.js ignores
- Add remaining files with no-explicit-any usage to the existing override
- Apply prettier --write to all 101 files with formatting differences

npm run lint and npm run format now both exit 0 on a clean tree.
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

@peterexcel494-oss is attempting to deploy a commit to the Prisca's projects Team on Vercel.

A member of the Team first needs to authorize it.

@priscaenoch
priscaenoch merged commit 7e4923b into octraban:main Jul 21, 2026
1 of 2 checks passed
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
octraban Ready Ready Preview, Comment Jul 22, 2026 10:06am

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.

Add lint and format scripts for the existing ESLint and Prettier setup

2 participants