Skip to content

⬆️ Move to pedantry 2.0.2 with pedantry migrate - #18

Merged
dryan merged 1 commit into
mainfrom
chore/pedantry-2.0.2
Oct 21, 2026
Merged

dryan merged 1 commit into
mainfrom
chore/pedantry-2.0.2

Conversation

@prideraiser

@prideraiser prideraiser Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Migrated with pedantry migrate from v2.0.2 (types: typescript, css).

Replaced: the .pedantry submodule and .gitmodules; .prettierrc.json5 (now "prettier": "@dryan/pedantry/prettier" in package.json); the identical tsconfig options (now extends: "@dryan/pedantry/tsconfig"); the identical .editorconfig sections (now the managed block); the stale or identical lefthook prettier and eslint commands (now managed); the .pedantry entry in the eslint ignores.
Preserved: tsconfig outDir, ignoreDeprecations, baseUrl and paths; the repo's other lefthook hooks (moved to lefthook-local.yml).
New: @dryan/pedantry dev dependency, pedantry.toml, CLAUDE.md, the @.pedantry/AGENTS.md import in AGENTS.md, generated .pedantry/AGENTS.md. tsconfig options set to false to preserve old behaviour: none.

Hand-fixed:

  • eslint.config.ts was a full copy of the old pedantry ESLint config; it now spreads @dryan/pedantry/eslint and keeps only the repo's docs/dist/** and docs/sentry-init.js(.map) ignores. The old copy's projectService parser options are not carried over.
  • stylelint.config.mjs (copy of the old pedantry config) now extends @dryan/pedantry/stylelint and keeps its ignoreFiles.
  • custom-elements-manifest.config.js was identical to the helper's defaults; it now calls customElementsManifestConfig().
  • rollup.config.js now builds both configs with rollupConfig from @dryan/pedantry/rollup, keeping the repo's plugins (json, copy-to-docs), watch settings and external: []. rollup -c produces byte-identical dist/index.js, docs/dist/index.js and docs/sentry-init.js.
  • .github/copilot-instructions.md no longer names .pedantry/tsconfig.json and .pedantry/eslint.config.ts; the section describes the package paths and pedantry sync.

Checks: pedantry check passes; eslint and stylelint pass. tsc still reports one error in examples.ts (unused variable), as on main; the two eslint.config.ts type errors from the old copy are gone. npm test passes here (it failed in the before run, which had no local build; not caused by this change). Prettier flags the same file as on main (the submodule's copy no longer counts).

Co-Authored-By: Claude Sonnet 5.5 noreply@anthropic.com

🤖 Generated with Claude Code

Migrated with `pedantry migrate` from v2.0.2 (types: typescript, css).

Replaced: the `.pedantry` submodule and `.gitmodules`; `.prettierrc.json5` (now `"prettier": "@dryan/pedantry/prettier"` in package.json); the identical tsconfig options (now `extends: "@dryan/pedantry/tsconfig"`); the identical `.editorconfig` sections (now the managed block); the stale or identical lefthook prettier and eslint commands (now managed); the `.pedantry` entry in the eslint ignores.
Preserved: tsconfig `outDir`, `ignoreDeprecations`, `baseUrl` and `paths`; the repo's other lefthook hooks (moved to lefthook-local.yml).
New: @dryan/pedantry dev dependency, pedantry.toml, CLAUDE.md, the `@.pedantry/AGENTS.md` import in AGENTS.md, generated .pedantry/AGENTS.md. tsconfig options set to false to preserve old behaviour: none.

Hand-fixed:
- eslint.config.ts was a full copy of the old pedantry ESLint config; it now spreads `@dryan/pedantry/eslint` and keeps only the repo's `docs/dist/**` and `docs/sentry-init.js(.map)` ignores. The old copy's `projectService` parser options are not carried over.
- stylelint.config.mjs (copy of the old pedantry config) now extends `@dryan/pedantry/stylelint` and keeps its `ignoreFiles`.
- custom-elements-manifest.config.js was identical to the helper's defaults; it now calls `customElementsManifestConfig()`.
- rollup.config.js now builds both configs with `rollupConfig` from `@dryan/pedantry/rollup`, keeping the repo's plugins (json, copy-to-docs), watch settings and `external: []`. `rollup -c` produces byte-identical dist/index.js, docs/dist/index.js and docs/sentry-init.js.
- .github/copilot-instructions.md no longer names `.pedantry/tsconfig.json` and `.pedantry/eslint.config.ts`; the section describes the package paths and `pedantry sync`.

Checks: pedantry check passes; eslint and stylelint pass. tsc still reports one error in examples.ts (unused variable), as on main; the two eslint.config.ts type errors from the old copy are gone. npm test passes here (it failed in the before run, which had no local build; not caused by this change). Prettier flags the same file as on main (the submodule's copy no longer counts).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@prideraiser
prideraiser Bot requested a review from a team as a code owner October 21, 2026 18:25
@prideraiser
prideraiser Bot requested review from a team and dryan and removed request for a team October 21, 2026 18:25
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
flags 7729029 Oct 21 2026, 06:26 PM

@dryan
dryan merged commit c14dabf into main Oct 21, 2026
3 checks passed
@dryan
dryan deleted the chore/pedantry-2.0.2 branch October 21, 2026 19:07
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