Skip to content
This repository was archived by the owner on Aug 13, 2026. It is now read-only.

Fix a few issues with some rules we noticed when migrating to flat config - #88

Closed
Christian Gonzalez (christiango) wants to merge 6 commits into
microsoft:mainfrom
christiango:christiango/handle-unions-properly
Closed

Fix a few issues with some rules we noticed when migrating to flat config#88
Christian Gonzalez (christiango) wants to merge 6 commits into
microsoft:mainfrom
christiango:christiango/handle-unions-properly

Conversation

@christiango

Copy link
Copy Markdown
Member

I work on an internal repo at Microsoft that uses these rules. We noticed that when upgrading to eslint flat config that some eslint errors were no longer firing. After some debugging we found that the following issues issues:

  • When type of an object was Window | null, no-postmessage-star-origin did not report it as an error
  • When the type of an HTML element was just "Element" no-inner-html didn't fire.

@BearCooder

Copy link
Copy Markdown

Hey Christian Gonzalez (@christiango) since you are working at Microsoft too I see, could you ping some of the maintaners internally to check this PR and also the eslint v10 support? This package has ove 500k weekly downloads and blocks us from updating to eslint v10

@christiango

Copy link
Copy Markdown
Member Author

Hey Christian Gonzalez (@christiango) since you are working at Microsoft too I see, could you ping some of the maintaners internally to check this PR and also the eslint v10 support? This package has ove 500k weekly downloads and blocks us from updating to eslint v10

I've sent an email internally to some of the historical contributors to see what the status is

Comment thread lib/rules/no-inner-html.js Outdated
Verify exact Element types originate from lib.dom.d.ts, add regression coverage for local and DOM Element types, and exercise Window unions with strict null checking.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c5c981a3-aec0-4094-8d03-3a49e13df9f2
Comment thread lib/rules/no-postmessage-star-origin.js Outdated
Reject custom types named Window while preserving DOM Window union handling, and share declaration-origin checks between the Window and Element rules.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c5c981a3-aec0-4094-8d03-3a49e13df9f2
@BearCooder

Copy link
Copy Markdown

Hey Christian Gonzalez (@christiango) I see you got an approval so you can merge soon 😀 However did you got a response regarding eslint v10 support in this plugin? There is even an open PR that would need a review and merge if its ok. (And then new release..)

@BearCooder

Copy link
Copy Markdown

Forgot to add that this is getting increasingly urgent as ESLint 9.x goes EOL on August 6th,

@christiango

Copy link
Copy Markdown
Member Author

Hey Christian Gonzalez (@christiango) I see you got an approval so you can merge soon 😀 However did you got a response regarding eslint v10 support in this plugin? There is even an open PR that would need a review and merge if its ok. (And then new release..)

I don't have write permissions so I'm not able to merge, plus there seems to be an issue with one of the required checks. I did reach out to the team and they did mention they were looking in to it and that lead to a review on this PR. I'm not sure what the plans are for overall eslint 10 support. Do you know Pratik Lade (@plade)?

@BearCooder

Copy link
Copy Markdown

Hey Christian Gonzalez (@christiango) I see you got an approval so you can merge soon 😀 However did you got a response regarding eslint v10 support in this plugin? There is even an open PR that would need a review and merge if its ok. (And then new release..)

I don't have write permissions so I'm not able to merge, plus there seems to be an issue with one of the required checks. I did reach out to the team and they did mention they were looking in to it and that lead to a review on this PR. I'm not sure what the plans are for overall eslint 10 support. Do you know Pratik Lade (@plade)?

Hey Pratik Lade (@plade) can you please help out with merging this?

@mkacmar

Copy link
Copy Markdown
Member

Unfortunately, we don't have capacity to maintain this project going forward, see #93

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants