-
-
Notifications
You must be signed in to change notification settings - Fork 68
chore: upgrade eslint from v8 to v9 #251
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: upgrade eslint from v8 to v9 #251
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #251 +/- ##
==========================================
- Coverage 82.26% 72.99% -9.28%
==========================================
Files 4 4
Lines 141 137 -4
Branches 51 51
==========================================
- Hits 116 100 -16
- Misses 16 24 +8
- Partials 9 13 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/runtime/getGlobalThis.js
Outdated
if (typeof window === "object") { | ||
return window; | ||
if (typeof globalThis.window === "object") { | ||
return globalThis; |
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.
In this place lets keep window for tests, just use // eslint-disable-next-line
src/runtime/getGlobalThis.js
Outdated
} | ||
|
||
return g; | ||
return globalObj; |
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.
This is a breaking change, we should keep logic without globalThis
, because it will not work in old browsers
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.
Please fix the comment above
@alexander-akait done |
// This works if eval is allowed (see CSP) | ||
// eslint-disable-next-line no-new-func | ||
g = this || new Function("return this")(); | ||
} catch (e) { |
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.
Keep e
because old browsers doesn't support optional catch
3ebac92
into
webpack-contrib:master
This PR contains a:
Motivation / Use-Case
upgrade eslint from v8 to v9
Breaking Changes
No
Additional Info
No