Skip to content

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

Description

@priscaenoch

Problem

eslint.config.js exists and both eslint and prettier are declared in devDependencies, but package.json defines no lint, lint:fix, or format script. Contributors have no documented way to run the linter, and the planned CI workflow (issue #5) expects npm run lint to exist. Lint and formatting are therefore never enforced.

What needs to be done

  • Add scripts to package.json:
    • "lint": "eslint ."
    • "lint:fix": "eslint . --fix"
    • "format": "prettier --check ."
    • "format:fix": "prettier --write ."
  • Add a .prettierignore/.eslintignore (or the flat-config equivalent ignores) covering dist, node_modules, and build output.
  • Run the linter and fix or explicitly document any pre-existing violations so the script exits clean.

Files

  • package.json
  • eslint.config.js

Acceptance deliverables

Tests to pass

  • npm run lint exits 0.
  • npm run format reports no formatting differences.

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions