Skip to content

Commit e555454

Browse files
committed
remove: template-no-negated-comparison
This rule has no upstream equivalent in ember-template-lint and its premise is debatable: `not-eq` is a first-class ember-truth-helpers helper, so flagging it as wrong is a style opinion rather than a correctness concern. Additionally, it conflicts conceptually with the newly-restored `template-no-negated-condition`, which autofixes `(not (eq ...))` to `not-eq` — the opposite direction. Opening for NullVoxPopuli to decide.
1 parent a98bbca commit e555454

4 files changed

Lines changed: 0 additions & 142 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ rules in templates can be disabled with eslint directives with mustache or html
249249
| [template-no-model-argument-in-route-templates](docs/rules/template-no-model-argument-in-route-templates.md) | disallow @model argument in route templates | | 🔧 | |
250250
| [template-no-multiple-empty-lines](docs/rules/template-no-multiple-empty-lines.md) | disallow multiple consecutive empty lines in templates | | 🔧 | |
251251
| [template-no-mut-helper](docs/rules/template-no-mut-helper.md) | disallow usage of (mut) helper | | | |
252-
| [template-no-negated-comparison](docs/rules/template-no-negated-comparison.md) | disallow negated comparisons in templates | | | |
253252
| [template-no-negated-condition](docs/rules/template-no-negated-condition.md) | disallow negated conditions in if/unless | | 🔧 | |
254253
| [template-no-nested-splattributes](docs/rules/template-no-nested-splattributes.md) | disallow nested ...attributes usage | | | |
255254
| [template-no-obscure-array-access](docs/rules/template-no-obscure-array-access.md) | disallow obscure array access patterns like `objectPath.@each.property` | | 🔧 | |

docs/rules/template-no-negated-comparison.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

lib/rules/template-no-negated-comparison.js

Lines changed: 0 additions & 34 deletions
This file was deleted.

tests/lib/rules/template-no-negated-comparison.js

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)