mocha icon indicating copy to clipboard operation
mocha copied to clipboard

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

Open JoshuaKGoldberg opened this issue 2 years ago • 0 comments

Tooling Suggestion Checklist

Overview

eslint-plugin-node is a devDependency in package.json: https://github.com/mochajs/mocha/blob/645469e1920e2e86458ff068e74eef2e2915083e/package.json#L95

...but not used in the ESLint config.

The eslint-plugin-n plugin (the successor to eslint-plugin-node) is actually useful though. Let's enable from its recommended preset config?

Additional Info

The devDependency is being removed in #5060, but that's just because it's unused. This issue is suggesting adding it (well, eslint-plugin-n) back.

JoshuaKGoldberg avatar Dec 28 '23 16:12 JoshuaKGoldberg