Skip to content

Conversation

@3y3
Copy link
Member

@3y3 3y3 commented Jan 16, 2026

  • chore(transform): update infrastructure following package-template pattern
  • chore(transform): remove duplicate workflows

Description

Related issue: #(issue number)


Note

Modernizes repo infra and automation, aligning with package-template.

  • Adopt auto-generated @diplodoc/lint configs: new .eslintrc.js, .prettierrc.js, .stylelintrc.js, enhanced .lintstagedrc.js, expanded ignores, updated .editorconfig, and added .gitattributes
  • CI/CD overhaul: remove legacy workflows; add tests.yml (matrix), security.yml, release-please.yml, release.yml (npm publish), package-lock.yml (auto-update), and update-deps.yml
  • Enable Dependabot via .github/dependabot.yml
  • Enforce commit policy with Husky commit-msg (English + Conventional Commits)
  • Docs refresh: add AGENTS.md and significantly expand README.md; remove jest.config.js (moving off Jest)

Written by Cursor Bugbot for commit 7f2bb40. This will update automatically on new commits. Configure here.

3y3 added 2 commits January 15, 2026 19:18
…ttern

- Add AGENTS.md with comprehensive AI agent documentation
- Update @diplodoc/lint from ^1.2.1 to ^1.9.2
- Improve README.md structure with Features, Development sections
- Update tsconfig.json: add exclude for lib, dist, e2e, playground
- Fix linting errors: remove unused variables in catch blocks
- Fix sanitize.ts: restore error variable usage in catch block
- Update .eslintignore and .stylelintignore to exclude playground and e2e
- Add missing terminal-link dependency for Jest
- Align with package-template and dev-infrastructure requirements
Remove old workflow files that were duplicated by @diplodoc/lint:
- Remove ci.yml (duplicate of tests.yml)
- Remove deps.yaml (duplicate of update-deps.yml)
- Remove package-lock.yaml (duplicate of package-lock.yml)

Keep the newer versions from @diplodoc/lint which have better
permissions, modern actions, and improved functionality.
@3y3 3y3 requested a review from a team as a code owner January 16, 2026 05:11
@3y3 3y3 requested review from Yurok868 and removed request for a team January 16, 2026 05:11
@yc-ui-bot
Copy link
Contributor

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
123 109 0 14 0 0 1m 11s

🎉 No failed tests in this run.

Github Test Reporter by CTRF 💚

3y3 added 4 commits January 16, 2026 08:15
Remove Liquid template support and YFMLint integration from Features list.
Add deprecation notes directing users to use separate packages:
- @diplodoc/liquid for Liquid template support
- @diplodoc/yfmlint for YFMLint integration

Legacy code remains in src/transform/liquid/ and src/transform/yfmlint/
for backward compatibility but should not be used in new projects.
Remove detailed file listings from Main Directories section.
Keep only high-level directory descriptions to improve maintainability.
File-level details can be discovered by exploring the codebase directly.
Remove incorrect mentions of Vitest migration - tests still use Jest.
Update all references to reflect current state: Jest is the active
testing framework, Vitest migration is a separate future task.
- Add vitest.config.mjs with Node.js environment and globals
- Update package.json: replace jest with vitest in scripts and dependencies
- Remove jest, jest-serializer-html, ts-jest, @types/jest
- Add vitest and @vitest/ui to devDependencies
- Update test imports: jest.fn() → vi.fn(), jest.Mock → Mock from vitest
- Update test assertions: toBeCalledWith → toHaveBeenCalledWith
- Update all snapshots to Vitest format
- Remove jest.config.js
- Update AGENTS.md documentation to reflect Vitest usage

All 782 tests passing successfully.
Separate type imports from runtime imports according to style guide:
- Type imports (import type) must be on separate lines
- Runtime imports should not mix with type imports in the same statement

This follows the Import Organization rules from .agents/style-and-testing.md
@yc-ui-bot
Copy link
Contributor

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
123 109 0 14 0 0 1m 14s

🎉 No failed tests in this run.

Github Test Reporter by CTRF 💚

@yc-ui-bot
Copy link
Contributor

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
123 109 0 14 0 0 1m 16s

🎉 No failed tests in this run.

Github Test Reporter by CTRF 💚

After migrating from Jest to Vitest, TypeScript cannot find global
test functions (describe, it, expect, etc.) because vitest/globals
types are missing from tsconfig.json.

This matches vitest.config.mjs where globals: true is enabled.
@yc-ui-bot
Copy link
Contributor

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
123 109 0 14 0 0 1m 35s

🎉 No failed tests in this run.

Github Test Reporter by CTRF 💚

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

name: release
on:
release:
types: [created, published]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate workflow runs on release events

Medium Severity

The release workflow triggers on both created and published event types. When release-please creates a non-draft GitHub release, both events fire simultaneously, causing the workflow to run twice. The first run publishes to npm successfully, but the second run fails because the version already exists on npm. This results in failed workflow runs for every release. Using only types: [published] would prevent this duplicate execution.

Fix in Cursor Fix in Web

continue-on-error: true

- name: Upload audit results
if: failure()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Audit artifact upload condition never triggers

Medium Severity

The "Upload audit results" step uses if: failure() but the preceding "Run npm audit" step has continue-on-error: true. When continue-on-error is set, the job status remains successful even if the step fails, so failure() always returns false. The upload step will never execute regardless of npm audit findings. The condition needs to use steps.<step-id>.outcome == 'failure' instead.

Additional Locations (1)

Fix in Cursor Fix in Web

# Allow fixup! and squash! prefixes (for git commit --fixup and --squash)
if echo "$SUBJECT" | grep -qE '^(fixup!|squash!)'; then
exit 0
fi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit hook rejects valid git merge commits

Medium Severity

The commit-msg hook allows fixup! and squash! prefixes but doesn't handle merge commits. When developers perform git merge, the auto-generated message (e.g., "Merge branch 'feature'") doesn't match the conventional commits format and the hook rejects it. Since AGENTS.md explicitly forbids using --no-verify, developers would be unable to perform local merge operations. The hook needs to also allow messages starting with Merge.

Fix in Cursor Fix in Web

@yc-ui-bot
Copy link
Contributor

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
123 109 0 14 0 0 1m 12s

🎉 No failed tests in this run.

Github Test Reporter by CTRF 💚

@yc-ui-bot
Copy link
Contributor

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
123 109 0 14 0 0 1m 11s

🎉 No failed tests in this run.

Github Test Reporter by CTRF 💚

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.

3 participants