-
Notifications
You must be signed in to change notification settings - Fork 7
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
[ADD] eslint-plugin-n
#163
Comments
Oh, it does that already, just in the SheriffSettings type itself. That should probably be documented though. |
So, finally getting back to this too.
As you already noted,
Addressed in #165.
So, environment checking is a tough one. Although, one cool thing that environment checking would enable would be structuredClone for example. About |
I've used environment checking with All in all, I think it has merit in ESM environments, although it certainly does overlap with |
This also kinda overlaps with unicorn/prefer-module. |
Just wanted to point out that @typescript-eslint just added no-deprecated rule to their plugin, which means that we will automatically inherit that rule. |
When making #161, I realized both that #162 was needed, and that we don't have any engines checking.
You can check engines compatible with transtives via
ls-engines --mode=ideal
. You can check source compatibility viaeslint-plugin-n
, which also includeseslint-plugin-es-x
.Combined, these tools help make sure that your code supports all versions of node that you say you do. I would assume that we'd add
eslint-plugin-n
under anode
option, and then dogfood it with #162, and just addls-engines
sometime as well.To make adding this non-breaking (though we don't need to avoid majors, of course), I might make sheriff options accept a
Partial<SheriffSettings>
anyway. Maybe even make it optional at that point. I might PR this change now, because it seems reasonable.The text was updated successfully, but these errors were encountered: