kentcdodds / kentcdodds/kcd-scripts

check prettier formatting in validate script

Open
#64 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
889
Forks
205
PR merge metrics
No merged PRs in 30d

Description

Without this, formatting is not checked in CI and only applied if the precommit hooks are installed, which is optional

Options:
- Add `prettier --list-different` to validate command
- Integrate prettier rules into ESLint (probably preferred for JS)

Contributor guide

Open the contributing guide

Research direction

Start by locating the validate command and reviewing how the optional precommit hooks currently apply formatting. Compare the two proposed approaches—adding prettier --list-different or integrating prettier rules into ESLint—and confirm that CI detects formatting differences without requiring hooks.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
ci-cd, tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.