Skip to content

Fix lint configuration and apply fixes#7304

Open
niklas-e wants to merge 2 commits into
phaserjs:masterfrom
niklas-e:fix/lint-config
Open

Fix lint configuration and apply fixes#7304
niklas-e wants to merge 2 commits into
phaserjs:masterfrom
niklas-e:fix/lint-config

Conversation

@niklas-e
Copy link
Copy Markdown

@niklas-e niklas-e commented May 16, 2026

Linting was broken after recent eslint version upgrade from v8 to v10. See attached issue for more details.

Describe the changes below:

  • Installed missing dependencies required by our linting setup
  • Migrated .eslintrc.json and .eslintignore to eslint.config.mjs
  • Applied npm run lintfix and fixed few remaining ones manually

Fixes #7303

niklas-e added 2 commits May 16, 2026 17:44
- Previous upgrade from v8 -> v10 caused linter to break because of unsupported configuration files
Comment thread eslint.config.mjs
Comment on lines +132 to +133
'no-useless-assignment': 'off',
'no-constant-binary-expression': 'off'
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

These two are new recommended rules from v9/v10, and caused quite a few errors. Not sure if these are desired so I disabled them.

Rule	Count
no-useless-assignment	114
no-constant-binary-expression	4
Total	118

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.

Linting is broken in master

1 participant