Make the CI ESLint step actually gate (run lint without --fix)#2560
Make the CI ESLint step actually gate (run lint without --fix)#2560Valyrian-Code wants to merge 2 commits into
Conversation
Run eslint --fix once to clear the 102 style violations the CI lint step had been silently repairing in the runner. Whitespace/indentation only, plus one react/wrap-multilines paren wrap; no behavior change. The full unit suite (339 tests) still passes.
The lint script runs 'eslint --ext .jsx,.js --fix' and test.yml invoked it in CI. Because --fix repairs auto-fixable problems in the runner and exits 0, fixable violations never failed the build (102 had accumulated). Add a lint:ci script without --fix and point test.yml at it so the lint step gates again; the local lint script keeps --fix for developer convenience.
There was a problem hiding this comment.
Code Review
This pull request primarily introduces formatting and indentation updates across several React components and utility files, alongside adding a new lint:ci script to package.json. A potential runtime TypeError was identified in UploadUtils.js where currentSupportedType.required_ext is accessed without a fallback check. A code suggestion has been provided to safely handle this scenario and prevent potential crashes.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
Thanks — good catch. This PR only reindents those lines (it's a CI lint-gate change), so the missing |
Problem
The
test.ymlworkflow runs the lint step asnpm run lint, and thelintscript is:Because
--fixrepairs every auto-fixable problem in the runner and then exits0, any auto-fixable violation passes CI green — the lint step never fails on them. Over time 102 such violations (indentation, plus onereact/wrap-multilines) accumulated in committed code while CI stayed green.Reproduce on current master:
Fix
Two commits, kept separate:
eslint --fix. The change is whitespace/indentation only, plus one inertreact/wrap-multilinesparen wrap — no behavior change (git diff -wshows only that single paren wrap).lint:ciscript without--fixand pointtest.ymlat it, so the lint step gates again. The locallintscript keeps--fixfor developer convenience.Verification
npm run lint:ciexits0after the fixes.339 tests completed, 0 failures.Question for maintainers
Was running
--fixin CI intentional? If you'd prefer flipping the convention solintis the check and a newlint:fixdoes the fixing, I'm happy to adjust — just say which you'd rather have.