Patch eslint-plugin-case-police for ESLint v10 compatibility - #50
Merged
tuanductran merged 2 commits intoFeb 7, 2026
Merged
Conversation
Co-authored-by: tuanductran <69758022+tuanductran@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update action step configuration in workflow
Patch eslint-plugin-case-police for ESLint v10 compatibility
Feb 7, 2026
tuanductran
approved these changes
Feb 7, 2026
There was a problem hiding this comment.
Pull request overview
This PR unblocks the lint:syntax CI step by patching eslint-plugin-case-police@2.1.1 to work with ESLint v10, which removed context.getFilename().
Changes:
- Patch
eslint-plugin-case-policeto usecontext.filenameinstead ofcontext.getFilename(). - Wire the patch in via
pnpm.patchedDependenciesand lockfile metadata. - Add patch documentation in
patches/README.md.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
pnpm-lock.yaml |
Adds patchedDependencies metadata + patch hash to ensure pnpm applies the patch deterministically. |
package.json |
Configures pnpm.patchedDependencies so installs apply the patch. |
patches/eslint-plugin-case-police@2.1.1.patch |
Applies the one-line ESLint v10 compatibility change in the dependency’s dist/index.cjs. |
patches/README.md |
Documents why the patch exists and when it can be removed. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| **Related:** | ||
|
|
||
| - ESLint v10.0.0 deprecated `context.getFilename()` in favor of `context.filename` |
There was a problem hiding this comment.
The README states that ESLint v10.0.0 “deprecated” context.getFilename() (line 25), but in v10 it was removed; the deprecation happened earlier. Please reword this section to avoid contradicting the earlier statement that it was removed in v10 (e.g., “Removed in ESLint v10 in favor of context.filename”).
Suggested change
| - ESLint v10.0.0 deprecated `context.getFilename()` in favor of `context.filename` | |
| - Removed in ESLint v10.0.0 in favor of `context.filename` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI failing on
lint:syntaxstep.eslint-plugin-case-police@2.1.1usescontext.getFilename()method removed in ESLint v10.Changes
context.getFilename()→context.filenameindist/index.cjs:118patches/eslint-plugin-case-police@2.1.1.patchwith fixpnpm.patchedDependenciessectionpatches/README.mdexplains the compatibility issuePatch can be removed when plugin maintainers release ESLint v10 support.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
apple.nextdns.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)eslint.org/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)help.mikrotik.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)help.nextdns.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)login.tailscale.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)my.nextdns.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)nextdns.github.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)nextdns.io/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)www.noip.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)www.npmjs.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)www.snbforums.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)x.com/home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/nextdns-skills/nextdns-skills/node_modules/.bin/../markdown-link-check/markdown-link-check -c config.json ./patches/README.md ./AGENTS.md ./README.md ./CLAUDE.md ./templates/skill-template.md ./templates/rule-template.md ./skills/nextdns-ui/rules/setup-optimization.md ./skills/nextdns-ui/rules/troubleshooting-ui.md ./skills/nextdns-ui/rules/threat-modeling.md ./skills/nextdns-ui/rules/web3-settings.md ./skills/nextdns-ui/rules/privacy-settings.md ./skills/nextdns-ui/rules/denylist-allowlist.md ./skills/nextdns-ui/rules/analytics-logs.md ./skills/nextdns-ui/rules/recommended-settings.md ./skills/nextdns-ui/rules/security-settings.md ./skills/nextdns-ui/rules/configuration-management.md(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.