Skip to content

Post-merge-review: template-no-negated-comparison: document name-clash; drop non-standard 'ne'#2693

Merged
NullVoxPopuli merged 5 commits intoember-cli:masterfrom
johanrd:day_fix/template-no-negated-comparison
Apr 15, 2026
Merged

Post-merge-review: template-no-negated-comparison: document name-clash; drop non-standard 'ne'#2693
NullVoxPopuli merged 5 commits intoember-cli:masterfrom
johanrd:day_fix/template-no-negated-comparison

Conversation

@johanrd
Copy link
Copy Markdown
Contributor

@johanrd johanrd commented Apr 13, 2026

Summary

  • Adds doc note: this rule is NOT a port of upstream's no-negated-condition — they have opposite goals
  • Removes the ne alias: ne is not a real Ember/ember-truth-helpers helper (not-eq is standard)

Test plan

  • {{#if (ne this.a this.b)}} → valid (not flagged)
  • {{#if (not-eq this.a this.b)}} → still flagged

… 'ne'

This rule is NOT a port of upstream's no-negated-condition — they have
opposite goals. Adds a note to the rule docs to prevent migration
confusion. Also removes the 'ne' alias which is not a real Ember
truth-helper (only 'not-eq' is standard).
@johanrd johanrd marked this pull request as ready for review April 13, 2026 16:23
@johanrd johanrd force-pushed the day_fix/template-no-negated-comparison branch from 42394fc to ece4355 Compare April 13, 2026 17:38
@johanrd johanrd changed the title template-no-negated-comparison: document name-clash; drop non-standard 'ne' Post-merge-review: template-no-negated-comparison: document name-clash; drop non-standard 'ne' Apr 13, 2026

<!-- end auto-generated rule header -->

> **Note**: This rule is NOT a port of upstream `ember-template-lint`'s `no-negated-condition`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we don't need to mention ember-template-lint here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fixed


<!-- end auto-generated rule header -->

> **Note**: This rule is NOT a port of `ember-template-lint`'s `no-negated-condition`.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

So why mention it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks, fixed now

@NullVoxPopuli NullVoxPopuli merged commit 8f3920b into ember-cli:master Apr 15, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants