Environment
ESLint version: v10.9.1
@eslint/json version: v2.1.0
Node version: v22.22.3
npm version: v10.8.2
Operating System: Ubuntu 20.04.0 LTS (StackBlitz)
Which language are you using?
json5
What did you do?
Configuration
import json from "@eslint/json";
export default [
{
files: ["**/*.json5"],
plugins: { json },
language: "json/json5",
rules: { "json/no-unsafe-values": "error" },
},
];
[2e308, +2e308, -2e308, Infinity, +Infinity, -Infinity]
What did you expect to happen?
All six values should be reported.
What actually happened?
Only 2e308, +2e308, and -2e308 are reported.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-jgyzylpm?file=index.js
Participation
AI acknowledgment
I used an AI to correct the grammar in the section below to make it clearer.
Additional comments
This is something I thought about while working on #266, and after looking into it, it appears to be a bug. If you agree, I’d be happy to submit a PR right away.
Disclosure: I'm a participant of open source contribution program OSSCA
Environment
ESLint version: v10.9.1
@eslint/json version: v2.1.0
Node version: v22.22.3
npm version: v10.8.2
Operating System: Ubuntu 20.04.0 LTS (StackBlitz)
Which language are you using?
json5
What did you do?
Configuration
What did you expect to happen?
All six values should be reported.
What actually happened?
Only 2e308, +2e308, and -2e308 are reported.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/stackblitz-starters-jgyzylpm?file=index.js
Participation
AI acknowledgment
I used an AI to correct the grammar in the section below to make it clearer.
Additional comments
This is something I thought about while working on #266, and after looking into it, it appears to be a bug. If you agree, I’d be happy to submit a PR right away.
Disclosure: I'm a participant of open source contribution program OSSCA