Skip to content

fix: fail npm run lint when eslint reports errors - #303

Merged
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:arbrandes/fix-lint-exit-code
Aug 29, 2026
Merged

fix: fail npm run lint when eslint reports errors#303
arbrandes merged 1 commit into
openedx:mainfrom
arbrandes:arbrandes/fix-lint-exit-code

Conversation

@arbrandes

Copy link
Copy Markdown
Contributor

Description

The lint script chained its three commands with ;, so npm run lint exited with the status of the last command only and CI stayed green with lint errors present. Both lint and lint:fix now chain with &&.

One consequence: npm run lint:fix stops before tools/ if the root --fix pass leaves unfixable errors. Re-run it after fixing those by hand.

Fixes #295

LLM usage notice

Built with assistance from Claude.

The lint script chained its commands with semicolons, so it exited with
the status of the last one and CI stayed green with lint errors present.

Fixes openedx#295

Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes
arbrandes enabled auto-merge (rebase) August 29, 2026 13:01
@arbrandes
arbrandes merged commit 85a1c0f into openedx:main Aug 29, 2026
5 checks passed
@openedx-semantic-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 2.0.0-alpha.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@arbrandes
arbrandes deleted the arbrandes/fix-lint-exit-code branch August 29, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npm run lint exits 0 when eslint reports errors, so CI misses them

2 participants