Note

This is a documentation for version 7.0.0-beta.2.
To check version 6.2.2 go here. To check previous releases go here.

# vue/no-multiple-objects-in-class

disallow to pass multiple objects into array to class

# 📖 Rule Details

This rule disallows to pass multiple objects into array to class.

<template> <div> <!-- ✓ GOOD --> <div :class="[{'foo': isFoo, 'bar': isBar}]" /> <!-- ✗ BAD --> <div :class="[{'foo': isFoo}, {'bar': isBar}]" /> </div> </template>
Now loading...

# 🔧 Options

Nothing.

# 🔍 Implementation