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

---
pageClass: rule-details
sidebarDepth: 0
title: vue/no-implicit-coercion
description: Disallow shorthand type conversions in `<template>`
since: v9.33.0
---

# vue/no-implicit-coercion

> Disallow shorthand type conversions in `<template>`

- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fix-problems) can automatically fix some of the problems reported by this rule.
- :bulb: Some problems reported by this rule are manually fixable by editor [suggestions](https://eslint.org/docs/developer-guide/working-with-rules#providing-suggestions).

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

## :books: Further Reading

- [no-implicit-coercion]

[no-implicit-coercion]: https://eslint.org/docs/rules/no-implicit-coercion

## :rocket: Version

This rule was introduced in eslint-plugin-vue v9.33.0

## :mag: Implementation

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

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