build: replace `eslint-plugin-node` with `eslint-plugin-n` (gh54 part II) by Planeshifter · Pull Request #10952 · stdlib-js/stdlib
Progresses stdlib-js/metr-issue-tracker#54.
Description
What is the purpose of this pull request?
This pull request:
- Replaces the unmaintained
eslint-plugin-node(v11) with its actively maintained forkeslint-plugin-n(v17) (PR 3 of the migration plan). - Renames plugin registration from
nodetoninetc/eslint/plugins/index.js. - Renames all rule references from
node/*ton/*inetc/eslint/rules/nodejs.js. - Updates ~530
eslint-disablecomments across the codebase fromnode/ton/. - Drops the
tryExtensionsoption fromn/file-extension-in-import(no longer supported byeslint-plugin-n). - Adds ignores for features newly detected by
eslint-plugin-n:bigintandhashbanginn/no-unsupported-features/es-syntax,http2andprocess.releaseinn/no-unsupported-features/node-builtins. - Updates JSDoc
@nametags and documentation URLs to point to theeslint-community/eslint-plugin-nrepository. - Moves nested
log/logErrorfunctions to outer scope inremark-run-javascript-examplesand fixes pre-existing lint violations in touched files.
Related Issues
Does this pull request have any related issues?
This pull request has the following related issues:
Questions
Any questions for reviewers of this pull request?
No.
Other
Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.
Stacked on #10950. eslint-plugin-n is the community-maintained fork of the unmaintained eslint-plugin-node and is required for ESLint v9 compatibility.
Checklist
Please ensure the following tasks are completed before submitting this pull request.
- Read, understood, and followed the contributing guidelines.
AI Assistance
When authoring the changes proposed in this PR, did you use any kind of AI assistance?
- Yes
- No
If you answered "yes" above, how did you use AI assistance?
- Code generation (e.g., when writing an implementation or fixing a bug)
- Test/benchmark generation
- Documentation (including examples)
- Research and understanding
Disclosure
If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".
This PR was written primarily by Claude Code. The bulk rename was done via scripted sed, with manual review of config changes and rule compatibility.
@stdlib-js/reviewers