Skip to content

Conversation

@fisker
Copy link
Collaborator

@fisker fisker commented Oct 23, 2025

Checks

foo?.push()
foo?.classList.add()

But still not check

foo.push?.()
foo.classList?.add()
foo.classList.add?.()

I don't think these make sense to allow.

@sindresorhus
Copy link
Owner

Conflict

# Conflicts:
#	rules/prefer-single-call.js
@sindresorhus sindresorhus merged commit 8a132ac into sindresorhus:main Oct 24, 2025
18 checks passed
@fisker fisker deleted the prefer-single-call-optional branch October 24, 2025 15:54
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