Add check/check:ci scripts and standardize lint naming#7755
Add check/check:ci scripts and standardize lint naming#7755gilluminate wants to merge 5 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
Dependency Review✅ No vulnerabilities found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
Combine lint, format, and typecheck into a single `check` (fix) and `check:ci` (check-only) script across all client workspaces. Rename lint scripts to match format convention: `lint` = fix, `lint:ci` = check-only. Simplify admin-ui and privacy-center lint commands by removing redundant next lint + separate cypress eslint calls. Update CI workflow and pre-commit hook to use the new combined scripts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1d7d976 to
c44e143
Compare
The check scripts call typecheck internally via npm run, so turbo doesn't resolve the ^build dependency that typecheck normally has. Add ^build to check and check:ci so fides-js is built before privacy-center typechecks against it. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Greptile SummaryThis is a clean developer-experience improvement that standardizes script naming across all four client workspaces ( Key changes:
Confidence Score: 5/5
Important Files Changed
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Clean, well-scoped DX improvement. The consolidation of separate typecheck/lint/format steps into unified check/check:ci scripts is a nice ergonomic win, the naming convention (lint = fix, lint:ci = check-only) is consistent and mirrors the existing format/format:ci pattern, and the drive-by cache: false fix on the format turbo task is correct.
One thing to verify: The pre-commit hook now runs npm run check, which includes tsc --noEmit — something the previous hooks did not do. This will noticeably slow down every commit (potentially 30–90s depending on machine/cache state). CI already catches type errors via check:ci, so it's worth deciding whether that tradeoff is intentional. See inline comment for details.
Everything else looks solid — the next lint → eslint . simplification is safe (confirmed ESLint configs extend next/core-web-vitals directly and no eslint.dirs override is present), cypress files continue to be linted correctly via their local root: true config, and the turbo caching choices (cache: false on check, cacheable check:ci) are correct.
Keep typecheck out of the pre-commit hook to avoid 30-90s slowdown on every commit. CI handles typecheck via check:ci. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ticket: N/A (developer experience improvement)
Description Of Changes
Add combined
checkandcheck:ciscripts to all client workspaces, and standardize lint script naming to match the format convention (lint= fix,lint:ci= check-only, mirroringformat/format:ci).Also simplifies admin-ui and privacy-center lint commands by removing redundant
next lint+ separate cypress eslint calls in favor of plaineslint .(cypress dirs have their own.eslintrc.cjswithroot: true).Code Changes
check(lint fix + format + typecheck) andcheck:ci(lint check + format check + typecheck) scripts to admin-ui, privacy-center, fidesui, and fides-jslint→lint:ci(check-only) andlint:fix→lint(fix) across all 4 workspaces, root package.json, and turbo.jsonnext lint && eslint ./cypress/...toeslint .npm run check:ciinstead of separate typecheck/lint/format stepsnpm run checkinstead of separate format/lint hookscache: falseto theformatturbo task (drive-by fix:prettier --writemutates files)Steps to Confirm
cd clients && npm run check:ci-- lint, format, and typecheck all execute for each workspacecd clients/fidesui && npm run check-- runs lint fix, format, and typecheck in sequencecd clients && npm run lint-- runs eslint --fix across all workspacescd clients && npm run lint:ci-- runs eslint check-only across all workspacesPre-Merge Checklist
CHANGELOG.mdupdatedmaindowngrade()migration is correct and works