Add ESLint + Prettier config - #68
Open
broda-spendy wants to merge 3 commits into
Open
Conversation
- 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.
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add standard ESLint and Prettier configuration to catch common mistakes and standardize formatting.
Added:
All existing source files formatted with Prettier. All 23 tests pass.
Closes #38.