Skip to content

chore: align plugin scripts with backstage-cli conventions#12

Merged
yumike merged 3 commits into
mainfrom
fix/align-cli-scripts
Mar 2, 2026
Merged

chore: align plugin scripts with backstage-cli conventions#12
yumike merged 3 commits into
mainfrom
fix/align-cli-scripts

Conversation

@yumike
Copy link
Copy Markdown
Contributor

@yumike yumike commented Mar 2, 2026

Summary

  • Switch lint scripts from tsc --noEmit to backstage-cli package lint (ESLint with Backstage's role-aware config)
  • Add missing standard scripts: start, test, format:check
  • Add publishConfig dist entries so prepack/postpack work correctly for npm publishing
  • Add .eslintrc.js configs using @backstage/cli/config/eslint-factory
  • Restructure Makefile: extract install and typecheck as independent targets, add format:check
  • Reorder CI and Makefile to fail fast: typecheck → lint → format → build

Test plan

  • make typecheck passes
  • make lint passes (ESLint)
  • make format:check passes
  • make build passes
  • CI pipeline passes on this PR

🤖 Generated with Claude Code

yumike and others added 3 commits March 2, 2026 08:24
Place the Documentation tab in Backstage's "documentation" entity
content group so it appears in the correct tab section on entity pages.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Switch lint from tsc --noEmit to backstage-cli package lint (ESLint)
- Add start and test scripts to both plugins
- Add publishConfig dist entries for correct npm publishing
- Add .eslintrc.js configs using backstage-cli eslint-factory
- Add jest as devDependency (required by ESLint jest plugin)
- Extract install and typecheck as separate Makefile targets
- Reorder make all: typecheck → lint → format → build (fail fast)
- Update CLAUDE.md to reflect new commands

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add format:check script to both plugins (prettier --check)
- Update CI to use workspace format:check instead of raw prettier glob
- Reorder CI steps: typecheck → lint → format → build (fail fast)
- Add format:check target to Makefile

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@yumike yumike merged commit 3b42b96 into main Mar 2, 2026
1 check passed
@yumike yumike deleted the fix/align-cli-scripts branch March 2, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant