# san/valid-s-show
enforce valid
s-show
directives
- ⚙️ This rule is included in all of
"plugin:san/essential"
,"plugin:san/strongly-recommended"
and"plugin:san/recommended"
.
This rule checks whether every s-show
directive is valid.
# 📖 Rule Details
This rule reports s-show
directives in the following cases:
- The directive does not have that attribute value. E.g.
<div s-show></div>
<template>
<!-- ✓ GOOD -->
<div s-show="foo"/>
<!-- ✗ BAD -->
<div s-show/>
</template>
Note
This rule does not check syntax errors in directives because it's checked by san/no-parsing-error rule.
# 🔧 Options
Nothing.