-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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: switch to true static attributes #3989
Conversation
Probably not a concern in this case, but something to be aware of when switching from |
We can't move to this until we move onto |
Not in the constructor, but it's protected in the "blessed" api i.e. in the instantiated object. https://github.com/npm/cli/blob/latest/lib/base-command.js#L12-L18 If someone requires the base class and overrides the constructor there that's ... on them? |
f1eeb6a
to
0797274
Compare
why do you need to wait for the eslint config? you should be able to set the parserOptions.ecmaVersion to 2022 in the meantime. |
eslint@7 doesn't support it at all, and updating to 8 in this repo would have meant auditing the other eslint plugins and updating this local eslint config, something that had already been done in our linting repo. We already moved the linting today so it's just a matter of landing the breaking change to |
ah, true, you'd need to use |
Ah, ok, I'd missed that. Since we don't support loading npm programmatically any more in v8, I really can't see any problem. It's easy enough for us to just not do the wrong thing. |
0797274
to
80f2568
Compare
b5112de
to
6bdd183
Compare
now that we're off of node10 we can clean this up PR-URL: #3989 Credit: @wraithgar Close: #3989 Reviewed-by: @lukekarrys
6bdd183
to
ea352f5
Compare
now that we're off of node10 we can clean this up