Skip to content

chore: Add ESLint 9, TypeScript ESLint, and Prettier configuration#1200

Merged
braedonsaunders merged 2 commits into
mainfrom
claude/add-eslint-prettier-config-ieHMS
Jan 31, 2026
Merged

chore: Add ESLint 9, TypeScript ESLint, and Prettier configuration#1200
braedonsaunders merged 2 commits into
mainfrom
claude/add-eslint-prettier-config-ieHMS

Conversation

@braedonsaunders

Copy link
Copy Markdown
Owner
  • Upgrade ESLint from v8 to v9 with flat config format
  • Add eslint-config-next v16 (now properly used)
  • Add Prettier v3 with eslint-config-prettier integration
  • Add TypeScript ESLint via typescript-eslint
  • Update lint script to include TypeScript files
  • Add format and format:check scripts for Prettier

https://claude.ai/code/session_015FEGtz1yJ5Yb1REqChSqTg

- Upgrade ESLint from v8 to v9 with flat config format
- Add eslint-config-next v16 (now properly used)
- Add Prettier v3 with eslint-config-prettier integration
- Add TypeScript ESLint via typescript-eslint
- Update lint script to include TypeScript files
- Add format and format:check scripts for Prettier

https://claude.ai/code/session_015FEGtz1yJ5Yb1REqChSqTg
- Add Husky pre-commit hook
- Configure lint-staged to run ESLint fix and Prettier on staged files
- JS/TS files: eslint --fix + prettier --write
- JSON/CSS/MD/YAML: prettier --write

https://claude.ai/code/session_015FEGtz1yJ5Yb1REqChSqTg
@braedonsaunders braedonsaunders merged commit 292f25b into main Jan 31, 2026
3 of 4 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1a0c2c7912

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread eslint.config.mjs
Comment on lines +18 to +19
// Next.js recommended config (includes TypeScript ESLint, React, etc.)
...nextConfig,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Replace invalid spread of eslint-config-next

Because eslint-config-next exports a single legacy config object (not an array), ...nextConfig will throw a TypeError: object is not iterable as soon as ESLint loads eslint.config.mjs, so npm run lint will fail before any rules execute. This happens whenever the lint config is evaluated, so CI/dev linting is broken until the Next config is adapted (e.g., via FlatCompat or by using a flat-config export).

Useful? React with 👍 / 👎.

@braedonsaunders braedonsaunders deleted the claude/add-eslint-prettier-config-ieHMS branch February 2, 2026 15:49
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.

2 participants