phaserjs / phaserjs/phaser

ESLint error: ES6 static methods not allowed

Open
#6,946 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Phaser 4
Dominant language
JavaScript
Stars
40.3k
Forks
7.2k
PR merge metrics
No merged PRs in 30d

Description

Version

  • Phaser Version: 3.87.0

Description

phaser/src/cameras/2d/Camera.js
  504:62  error  ES6 static methods not allowed: Number.isInteger  es5/no-es6-static-methods
  504:89  error  ES6 static methods not allowed: Number.isInteger  es5/no-es6-static-methods

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at phaser/src/cameras/2d/Camera.js around line 504 and inspect the two Number.isInteger usages reported by ESLint. Run the relevant ESLint check after the change; done means both es5/no-es6-static-methods errors are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
game-dev, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.