# eqeqeq

Rule `vue/eqeqeq`. Require the use of `===` and `!==` in `<template>`

- Source: vue
- Technologies: Vue
- Kind: suspicious
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 758.7K weekly downloads of presets that enable it
- Trend: +49.9% last quarter
- Rank: #1576 by reach, #793 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/eqeqeq` | no | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/eqeqeq.html) |
| Biome | `suspicious/noDoubleEquals` | yes | unsafe | group suspicious, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-double-equals/) |

## Code examples

### Incorrect: the rule reports this

```js
foo == bar
```

### Correct: the rule accepts this

```js
foo == null
```

```js
foo != null
```

```js
null == foo
```

Examples from the Biome documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/eqeqeq": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noDoubleEquals": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [eslint/eqeqeq](https://lintradar.dev/rules/eslint/eqeqeq.md): Require the use of `===` and `!==`
- [vue/dot-notation](https://lintradar.dev/rules/vue/dot-notation.md): Enforce dot notation whenever possible in `<template>`
- [vue/no-empty-pattern](https://lintradar.dev/rules/vue/no-empty-pattern.md): Disallow empty destructuring patterns in `<template>`
- [vue/define-macros-order](https://lintradar.dev/rules/vue/define-macros-order.md): Enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
- [vue/no-irregular-whitespace](https://lintradar.dev/rules/vue/no-irregular-whitespace.md): Disallow irregular whitespace in `.vue` files
- [vue/component-options-name-casing](https://lintradar.dev/rules/vue/component-options-name-casing.md): Enforce the casing of component name in `components` options

---

Web page: https://lintradar.dev/rules/vue/eqeqeq. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
