Skip to content

Add basic linting for iojs.org/aliases.json - #299

Merged
richardlau merged 2 commits into
mainfrom
fixiojsaliases
Dec 4, 2026
Merged

richardlau merged 2 commits into
mainfrom
fixiojsaliases

Conversation

@richardlau

@richardlau richardlau commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Add a lint check for iojs.org/aliases.json to catch basic syntax errors.

Signed-off-by: Richard Lau <richard.lau@ibm.com>
Signed-off-by: Richard Lau <richard.lau@ibm.com>
@richardlau

Copy link
Copy Markdown
Member Author

I'll squash both commits on landing, but PRed this as two commits to demonstrate the syntax error on main,
e.g. https://github.com/nodejs/email/actions/runs/47365138732/job/145152783547

Run node -e 'JSON.parse(require("node:fs").readFileSync("iojs.org/aliases.json"))'
<anonymous_script>:279
  }
  ^

SyntaxError: Expected double-quoted property name in JSON at position 5879 (line 279 column 3)
    at JSON.parse (<anonymous>)
    at [eval]:1:6
    at runScriptInThisContext (node:internal/vm:219:10)
    at node:internal/process/execution:485:12
    at [eval]-wrapper:6:24
    at runScriptInContext (node:internal/process/execution:483:60)
    at evalFunction (node:internal/process/execution:317:30)
    at evalTypeScript (node:internal/process/execution:329:3)
    at node:internal/main/eval_string:71:3

Node.js v26.14.0
Error: Process completed with exit code 1.

and the same check passing with the second commit which removes the trailing ,.

@richardlau
richardlau merged commit 3cbe0cf into main Dec 4, 2026
1 check passed
@richardlau
richardlau deleted the fixiojsaliases branch December 4, 2026 15:41
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.

2 participants