-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Usage of deprecated APIs of ESLint #234
Comments
I was trying to start a PR to fix this issue, but that would be a little bit harder and bigger than I thought.
Thoughts ? @standard/team |
Good catch @divlo! I generally agree with your thoughts on converting to Promises / async methods and converting to ES6 classes could be a good idea as well. Some thoughts:
|
Should also bump minimum Node.js version from 10.x to 12.x then as well |
Yes, it is mostly repos within
Yes, it's finally time to drop Node.js v10 support, as it reached End Of Life. |
The first v8.0.0 beta prerelease has been published! (see: eslint/eslint#14872 and https://eslint.org/blog/2021/08/eslint-v8.0.0-beta.0-released) There is a migration guide available: https://github.com/eslint/eslint/blob/master/docs/user-guide/migrating-to-8.0.0.md |
Exciting stuff @divlo! Should we target being compatible with ESLint 8 or require ESLint 8 for the Maybe have the require as a future major release, but already now open an issue to track what we would like to make use of when we're ESLint 8 only? |
I think being compatible is enough for the
Sure! |
I'll beginning to work on this |
What version of this package are you using?
[email protected]
What problem do you want to solve?
I don't think we should use deprecated APIs of other packages. See ESLint Node.js API.
Currently
standard-engine
supports any version of eslint >= 1.0.0, we should instead support any version of eslint >= 7.0.0 to be able to use the "new" ESLint class API.What do you think is the correct solution to this problem?
Refactor to make it work with the
ESLint
class. (BREAKING CHANGE)For example at this line, we're using
CLIEngine
:standard-engine/index.js
Line 78 in b695a02
The text was updated successfully, but these errors were encountered: