Skip to content

Add ESLint + Prettier config - #68

Open
broda-spendy wants to merge 3 commits into
BreachDirect:mainfrom
broda-spendy:feat/38-eslint-prettier
Open

Add ESLint + Prettier config#68
broda-spendy wants to merge 3 commits into
BreachDirect:mainfrom
broda-spendy:feat/38-eslint-prettier

Conversation

@broda-spendy

Copy link
Copy Markdown
Contributor

Add standard ESLint and Prettier configuration to catch common mistakes and standardize formatting.

Added:

  • \eslint.config.mjs\ - ESLint 9 flat config with React, React Hooks, and Prettier integration
  • .prettierrc.json\ - Prettier config matching existing code style (no semicolons, single quotes, 2-space indent, 100 char print width)
  • .prettierignore\ - Ignore build artifacts
  • \lint, \ ormat, \lint:format\ scripts in \package.json\

All existing source files formatted with Prettier. All 23 tests pass.

Closes #38.

- Add eslint.config.mjs with React and React Hooks plugins
- Add .prettierrc.json with project code style (no semicolons, single quotes, 2-space indent)
- Add .prettierignore to skip build artifacts
- Add lint/format/lint:format scripts to package.json
- Run Prettier to format existing codebase
- All 23 tests pass

Closes BreachDirect#38.
@broda-spendy
broda-spendy requested a review from ToryMic as a code owner August 14, 2026 07:26
broda-spendy and others added 2 commits August 14, 2026 08:42
- Install @vitest/coverage-v8 as devDependency
- Add coverage configuration to vite.config.js (v8 provider, lcov reporter, thresholds)
- Add test:coverage script to package.json
- Add coverage/ to .gitignore and .prettierignore
- Add CI workflow (.github/workflows/test.yml) that runs lint, tests with coverage, and uploads to Codecov
- Exclude entry points (main.jsx, App.jsx) and story files from coverage

Closes BreachDirect#28.
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 ESLint + Prettier config

2 participants