use crate::context::LintContext;
use crate::diagnostic::Severity;
use crate::rule::{Rule, RuleCategory, RuleMeta};
use vize_relief::ast::RootNode;
static META: RuleMeta = RuleMeta {
name: "vapor/require-vapor-attribute",
description: "Suggest adding vapor attribute to script setup",
category: RuleCategory::Vapor,
fixable: true,
default_severity: Severity::Warning,
};
pub struct RequireVaporAttribute {
pub as_suggestion: bool,
}
impl Default for RequireVaporAttribute {
fn default() -> Self {
Self {
as_suggestion: true,
}
}
}
impl Rule for RequireVaporAttribute {
fn meta(&self) -> &'static RuleMeta {
&META
}
fn run_on_template<'a>(&self, _ctx: &mut LintContext<'a>, _root: &RootNode<'a>) {
}
}
#[cfg(test)]
mod tests {
#[test]
fn test_placeholder() {
}
}