# Source: https://github.com/vuejs/eslint-plugin-vue/blob/master/docs/rules/no-negated-condition.md

---
pageClass: rule-details
sidebarDepth: 0
title: vue/no-negated-condition
description: Disallow negated conditions in `<template>`
since: v10.4.0
---

# vue/no-negated-condition

> Disallow negated conditions in `<template>`

## :book: Rule Details

This rule is the same rule as core [no-negated-condition] rule but it applies to the expressions in `<template>`.

## :couple: Related Rules

- [`vue/no-negated-v-if-condition`](https://eslint.vuejs.org/rules/no-negated-v-if-condition.html)
- [unicorn/no-negated-condition](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md)

## :books: Further Reading

- [no-negated-condition]

[no-negated-condition]: https://eslint.org/docs/rules/no-negated-condition

## :rocket: Version

This rule was introduced in eslint-plugin-vue v10.4.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/no-negated-condition.js)
- [Test source](https://github.com/vuejs/eslint-plugin-vue/blob/master/tests/lib/rules/no-negated-condition.js)

<sup>Taken with ❤️ [from ESLint core](https://eslint.org/docs/latest/rules/no-negated-condition)</sup>