Skip to content

Conversation

@simwai
Copy link
Contributor

@simwai simwai commented Sep 20, 2025

Fixes #834

Problem

Prettier integration fails to disable stylistic rules due to incorrect boolean logic using ?? instead of ||.

Root cause

Line 77 uses nullish coalescing for boolean evaluation, causing validation to never trigger.

Fix

Replace ?? with || for proper boolean OR logic.

Testing

Added test case to verify validation correctly detects semicolon conflicts.

Fixes xojs#834

Replace ?? with || in prettier validation logic to properly detect
semicolon conflicts between XO and Prettier configurations.
@sindresorhus sindresorhus merged commit b41471f into xojs:main Sep 21, 2025
3 checks passed
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.

@stylistic/semi rule not properly disabled despite configuration

3 participants