# 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