Skip to content

Conversation

@bmish
Copy link
Owner

@bmish bmish commented Nov 29, 2022

Split onto separate lines for clarity. A rule that is enabled/disabled/warn by multiple configs is a relatively uncommon situation to begin with.

Fixes #310.

Before:

💼🚫 This rule is enabled in the ✅ recommended config. This rule is disabled in the other config.

After:

⚠️ This rule warns in the ✅ recommended config.

🚫 This rule is disabled in the ⌨️ typescript config.

@bmish bmish added the bug Something isn't working label Nov 29, 2022
]
.filter(Boolean)
.join(' ');
.join('\n\n');
Copy link

Choose a reason for hiding this comment

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

why two newlines instead of one?

Copy link
Owner Author

Choose a reason for hiding this comment

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

We currently separate all notices with a blank line:

💼 This rule is enabled in the ✅ recommended config.

🚫 This rule is disabled in the other config.

Are you suggesting grouping these related notices together like:

💼 This rule is enabled in the ✅ recommended config.
🚫 This rule is disabled in the other config.

Copy link

@ljharb ljharb Nov 29, 2022

Choose a reason for hiding this comment

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

Yes, exactly

@bmish bmish marked this pull request as draft December 1, 2022 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tweak emoji placement in rule doc config notice when combination of enabled/warn/disabled present

4 participants