Skip to content

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

Open
johanrd wants to merge 1 commit intoember-cli:masterfrom
johanrd:day_fix/template-no-negated-comparison
Open

template-no-negated-comparison: document name-clash; drop non-standard 'ne'#2693
johanrd wants to merge 1 commit 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
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.

1 participant