Skip to content

Meta: Require is(), has() and not() helpers in selector strings - #10378

Draft
fregante wants to merge 8 commits into
mainfrom
claude/prefer-is-helper
Draft

fregante wants to merge 8 commits into
mainfrom
claude/prefer-is-helper

Conversation

@fregante

@fregante fregante commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Created by Claude, will be reviewed by @fregante first.

Replaces the restricted-syntax check with an autofixing refined-github/prefer-selector-helper rule. It converts :is(), :has() and :not() in plain strings to is(), has() and not() from helpers/css-selectors.js and runs on source/. Template literals and functions with fewer than 14 characters inside are skipped.

Part of #7777

Part of #7777

Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the meta Related to Refined GitHub itself label Nov 6, 2026
fregante and others added 2 commits November 8, 2026 16:59
Supports `is()`, `has()` and `not()`, ignores template literals and short functions

Co-authored-by: Claude <noreply@anthropic.com>
@fregante fregante changed the title Meta: Require the is() helper instead of :is() in strings Meta: Require is(), has() and not() helpers in selector strings Nov 8, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

2 participants