-
Notifications
You must be signed in to change notification settings - Fork 654
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
fix(init): exclude the no-window lint rule for new projects #2351
Conversation
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.
What's the reason for this? I think new projects should be abiding by this rule. I'm not sure why we would exclude it.
So do you prefer See https://discord.com/channels/684898665143206084/991511118524715139/1205582216244240524. |
As per #2351 (comment)
Personally I've used globalThis, but apparently self is also a valid fix. |
Even MDN examples are using |
I don't have strong opinions on this. Sometimes I'm using |
Which browsers don’t support |
I don't understand what you're hinting at. |
You told me that |
Right, I meant in future Deno versions. Having the |
I’m talking about browsers. |
How does the lint rule detect whether the code you're authoring runs in the browser or in Deno? |
That doesn’t mean it should be discouraged for browser-side use. |
Hi @roj1512, let me take a step back and try to clarify the entire situation. I've just now realized that my previous link was incorrect -- I wanted to link to this: denoland/deno#22057 (comment). The deno team (of which I'm not a part of, so I don't really know why) has decided to remove support for Fresh (obviously) uses deno, and, more importantly, runs all client side code on the (deno based) server prior to sending it to the browser. (There is an enhancement to support not running islands on the server -- see #975.) Given that the islands run on the server, they can't have So this brings me back to the original issue here: I don't think it's a good idea to disable this linting rule, since it helps people migrate to 2.0 The paths forward seem to be:
|
No description provided.