Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: enabled eslint-plugin-n #5280

Merged
merged 7 commits into from
Mar 17, 2025

Conversation

JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg commented Jan 2, 2025

PR Checklist

Overview

Adds eslint-plugin-n's recommended-script flat config. Amazingly, there were almost no reports from the core rules there. The only changes are commented inline.

Also enables n/prefer-node-protocol for the reasons mentioned in the doc. All reports were fixed with npm run lint:code -- --fix.

@@ -1,5 +1,3 @@
#!/usr/bin/env node
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n/hashbang: this hashbang comment is unnecessary.

@@ -1,5 +1,3 @@
#!/usr/bin/env node
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n/hashbang: this hashbang comment is unnecessary.

@@ -1,12 +1,11 @@
#!/usr/bin/env node
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

n/hashbang: this hashbang comment is unnecessary.

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review March 10, 2025 20:58
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team March 10, 2025 20:59
@JoshuaKGoldberg JoshuaKGoldberg merged commit 945d6e3 into mochajs:main Mar 17, 2025
75 checks passed
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.

🛠 Repo: Enable eslint-plugin-n in ESLint config
2 participants