-
Notifications
You must be signed in to change notification settings - Fork 37
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
breaking: support ESLint 8.x #337
Conversation
@sarbbottam tests don't seem to be running. is that something you could look into on travis? otherwise i'll have to put up a PR switching us over to github actions. |
9bb36ae
to
3825c88
Compare
Rebased this on top of #338. |
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
===========================================
- Coverage 100.00% 98.45% -1.55%
===========================================
Files 9 9
Lines 181 194 +13
===========================================
+ Hits 181 191 +10
- Misses 0 3 +3
Continue to review full report at Codecov.
|
@MichaelDeBoey looks like there's a legit test failure - |
3aa9bad
to
2d740b7
Compare
@ljharb Fixed the import, together with the fix of the Still some failing tests, but can't figure out how to fix them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, now there seems to be even more failing tests than before, just not because of the require issue :-/
I think since you changed the eslintrc import to not be a deep import, the proxyquire mocks are no longer working. If there's no deep import way to get to it, then we'll have to mock out the entire eslintrc module. |
Dying for this to drop! Just tried building + running this branch against my config, but it wasn't working ( |
715440a
to
5437d9a
Compare
@ljharb I've mocked |
No, I’ve been playing with it locally too with no success. I have some changes to push up but something is failing to mock getRules properly. |
Oh.. I see. My Will be much better if we can access the proxyquire-mocked filled thlorenz/proxyquire#265. And looking for alternatives. |
Mock problems now should have been fixed in MichaelDeBoey#12 with a workaround. |
hm, so for the promise stuff, i'm not seeing those unhandled rejection warnings locally (altho i can easily reproduce the failures) |
@ljharb the unhandled rejection errors should have been fixed in MichaelDeBoey@d66b44c with a workaround. You won't see them if you are using node.js > 14, too. (Don't know why. Just took a look at the checks. Whatever, it's solved.) eslint-find-rules/src/lib/rule-finder.js Line 37 in 9af66d5
The promises make this line |
Co-authored-by: Michaël De Boey <[email protected]> Co-authored-by: Jordan Harband <[email protected]> Co-authored-by: 华 <[email protected]> chore: simplify process.exit mock
Tests are passing, which is great. I'm going to hold off merging this until I add a few other changes, including MichaelDeBoey#14. |
This comment has been minimized.
This comment has been minimized.
87a1468
to
103025e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this is a breaking change, so I'm bundling in dropping eslint < 7.
ESLint v8.0.0 is released 🎉
devDependency compatibility with ESLint 8:
eslint-plugin-json
(Support ESLint 8.x azeemba/eslint-plugin-json#68)ReleaseCloses #336