Skip to content

Migrate to @playcanvas/eslint-config v3 (/typescript)#2076

Merged
kpal81xd merged 10 commits into
mainfrom
eslint-config-v3
Jul 7, 2026
Merged

Migrate to @playcanvas/eslint-config v3 (/typescript)#2076
kpal81xd merged 10 commits into
mainfrom
eslint-config-v3

Conversation

@kpal81xd

@kpal81xd kpal81xd commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Part of the v3 rollout: playcanvas/eslint-config#48 (Wave 4).

What changed

  • Migrated to @playcanvas/eslint-config/typescript and updated @playcanvas/eslint-config to 3.0.0-beta.8.
  • Added Prettier config and split formatting/lint scripts so formatting stays explicit.
  • Applied the v3 lint/format cleanup while preserving runtime behavior.
  • Fixed the reviewed regressions from the cleanup: advanced-search initialization order and Object.hasOwn usage against the existing Chrome 63 production target.

Migration status

  • ESLint now has no errors; remaining no-explicit-any and no-unused-vars warnings stay deferred for incremental follow-up.

Manual smoke test

  1. Open the Editor and load a project.
    Expected: the editor loads without startup console errors.
  2. Open Entities advanced search and change the field/type controls.
    Expected: the search controls update without ReferenceError.
  3. Open a project Launch page.
    Expected: launch loads and asset/entity sync paths do not throw ownership-check errors.

@vercel

vercel Bot commented Jun 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
editor Ready Ready Preview, Comment Jul 7, 2026 3:02pm

Request Review

kpal81xd added 2 commits July 7, 2026 11:13
- add prettier.config.mjs re-exporting @playcanvas/eslint-config/prettier
- add .prettierignore (sass stays owned by stylelint)
- add fmt/fmt:fix scripts and prettier devDependency
- rename type:check script to typecheck and update callers
- ci: separate lint and fmt steps
- format entire codebase with prettier (627 files)
- fix ~1300 auto-fixable eslint errors (eslint --fix)
- fix 688 mechanical rule violations across 241 files
  (prefer-for-of, no-prototype-builtins→Object.hasOwn, consistent-type-imports,
   typedef, no-unsafe-function-type, no-extraneous-class, etc.)
- defer no-explicit-any and no-unused-vars to warn during migration
- disable @typescript-eslint/no-unused-expressions for test files (chai)
- bump tsconfig lib to es2023 (Node 22 LTS) for Object.hasOwn

eslint: 0 errors | prettier: clean | build: passes | tests: 157 passing
@kpal81xd kpal81xd marked this pull request as ready for review July 7, 2026 13:43
@kpal81xd kpal81xd merged commit 3d17548 into main Jul 7, 2026
7 checks passed
@kpal81xd kpal81xd deleted the eslint-config-v3 branch July 7, 2026 15:59
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