-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors
Description
p5.js version
2.0.5
What is your operating system?
iOS
Web browser and version
Safari 18.7.1
Actual Behavior
Using underscores to make numbers more visible produces red underscores from the linter, even though it doesn’t actually error and is supported in js. (Example, 5_000_000 instead of 5000000)
Expected Behavior
I was expecting it to not have the red underscores, and for the linter to understand it.
Steps to reproduce
Steps:
- Try to use underscores between numbers in a number
Snippet:
// Is fine with the linter
console.log(5000000)
// Warns from the linter
console.log(5_000_000)Metadata
Metadata
Assignees
Labels
Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardNeeds review from a maintainer before moving forwardBugError or unexpected behaviorsError or unexpected behaviors
