astro/prefer-object-class-list

require use object instead of ternary expression in class:list

  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule aims to use object elements than ternary expression in class:list.

🔧 Options

Nothing.

📚 Further Reading

🚀 Version

This rule was introduced in eslint-plugin-astro v0.4.0

🔍 Implementation



Edit this page