mysticatea / eslint-plugin-node

Additional ESLint's rules for Node.js
MIT License
962 stars 172 forks source link

Suggestion: Make a less intrusive and/or smarter recommended config #353

Open ragnese opened 1 year ago

ragnese commented 1 year ago

Right now, extending plugin:node/recommended is "half smart". By that, I mean that it does a bunch of stuff besides just adding rules, but some of those things are a little blunt:

A simple "fix" to these issues would be to have a "dumb" config that is just the rules used by "plugin:node/recommended" and would require us to manually do the other stuff, like adding to the plugins array.

I know that the plugin can use package.json's engines field for the no-unsupported-features rules. Perhaps it could use it for setting the parserOptions.ecmaVersion as well?

scagood commented 1 year ago

We're currently maintaining a fork of this plugin over at eslint-plugin-n!

If you have any issues please don't hesitate to make an issue over there :)