Skip to content

Fix ESLint config compatibility with eslint-plugin-github v6#779

Merged
alexarchambault merged 3 commits intodependabot/npm_and_yarn/eslint-plugin-github-6.0.0from
copilot/sub-pr-652
Feb 19, 2026
Merged

Fix ESLint config compatibility with eslint-plugin-github v6#779
alexarchambault merged 3 commits intodependabot/npm_and_yarn/eslint-plugin-github-6.0.0from
copilot/sub-pr-652

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 19, 2026

eslint-plugin-github v6.0.0 is ESM-only ("type": "module"), making it incompatible with ESLint 8.x which loads plugins via require(). The CJS interop wraps exports under default, so ESLint can't resolve plugin:github/typescript.

Changes

  • .eslintrc.json: Replace "extends": ["plugin:github/typescript"] with "extends": ["plugin:@typescript-eslint/recommended"]; remove disabled rules whose defining plugins were only loaded transitively via the github config (eslint-comments/no-use, import/no-namespace, i18n-text/no-en)
  • src/restore.ts: Remove eslint-disable-next-line github/no-then comments — referencing an unloaded plugin's rule causes ESLint to error

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits February 19, 2026 23:14
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>
Copilot AI changed the title [WIP] Update eslint-plugin-github from 4.10.2 to 6.0.0 Fix ESLint config compatibility with eslint-plugin-github v6 Feb 19, 2026
@alexarchambault alexarchambault marked this pull request as ready for review February 19, 2026 23:21
@alexarchambault alexarchambault merged commit 8e2d657 into dependabot/npm_and_yarn/eslint-plugin-github-6.0.0 Feb 19, 2026
4 checks passed
@alexarchambault alexarchambault deleted the copilot/sub-pr-652 branch February 19, 2026 23:21
alexarchambault added a commit that referenced this pull request Feb 19, 2026
* Bump eslint-plugin-github from 4.10.2 to 6.0.0

Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.10.2 to 6.0.0.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](github/eslint-plugin-github@v4.10.2...v6.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix ESLint config compatibility with eslint-plugin-github v6 (#779)

* Initial plan

* Initial plan

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

* Fix ESLint config for eslint-plugin-github v6 compatibility

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

* Remove deprecated @typescript-eslint stylistic rules incompatible with v8 (#782)

* Initial plan

* Initial plan

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

* Remove deprecated @typescript-eslint/semi and type-annotation-spacing rules

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

* Restore semi and type-annotation-spacing lint rules via @stylistic/eslint-plugin-ts (#783)

* Initial plan

* Add back semi linting rules via @stylistic/eslint-plugin-ts

Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexarchambault <7063723+alexarchambault@users.noreply.github.com>
Co-authored-by: Alex Archambault <alexandre.archambault@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants