Skip to content

Patch eslint-plugin-case-police for ESLint v10 compatibility - #50

Merged
tuanductran merged 2 commits into
renovate/major-eslint-monorepofrom
copilot/update-action-step-configuration
Feb 7, 2026
Merged

Patch eslint-plugin-case-police for ESLint v10 compatibility#50
tuanductran merged 2 commits into
renovate/major-eslint-monorepofrom
copilot/update-action-step-configuration

Conversation

Copilot AI commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

CI failing on lint:syntax step. eslint-plugin-case-police@2.1.1 uses context.getFilename() method removed in ESLint v10.

Changes

  • Patch plugin: Replace context.getFilename()context.filename in dist/index.cjs:118
  • Add pnpm patch: patches/eslint-plugin-case-police@2.1.1.patch with fix
  • Configure package.json: Add pnpm.patchedDependencies section
  • Document patch: patches/README.md explains the compatibility issue
- const extension = node_path.extname(context.getFilename());
+ const extension = node_path.extname(context.filename);

Patch 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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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
    • Triggering command: /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

Reference: https://github.com/tuanductran/nextdns-skills/actions/runs/21770883279/job/62817984918#step:7:1


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

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
Copilot AI requested a review from tuanductran February 7, 2026 03:10
@tuanductran
tuanductran marked this pull request as ready for review February 7, 2026 03:12
Copilot AI review requested due to automatic review settings February 7, 2026 03:12
@tuanductran
tuanductran merged commit d6d448c into renovate/major-eslint-monorepo Feb 7, 2026
8 checks passed
@tuanductran
tuanductran deleted the copilot/update-action-step-configuration branch February 7, 2026 03:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-police to use context.filename instead of context.getFilename().
  • Wire the patch in via pnpm.patchedDependencies and 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.

Comment thread patches/README.md

**Related:**

- ESLint v10.0.0 deprecated `context.getFilename()` in favor of `context.filename`

Copilot AI Feb 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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`

Copilot uses AI. Check for mistakes.
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.

3 participants