Skip to content

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