是否有一种简单的方法来自定义 Visual Studio Code HTML / CSS linter 验证规则的行为?
我希望有可能将数据占位符放入样式、属性、文本节点的代码中,例如:
<style type="text/css">
.testa {
color: white;
background-color: navy;
transition: color 1s, background-color 1s;
}
</style>
<template>
<div class="testa" onclick="{{testClick}}" style="background-color: {{backgroundColor}}; color: {{color}}" >
{{firstName}} {{lastName}} {{firstName} {{lastName}}
</div>
<div style="{{style}}">
{{firstName}} {{lastName}}
</div>
</template>
它不需要是 {{...}} 占位符。它可以是其他任何东西,例如 ${},但我希望 Visual Studio Code 不将此报告为错误,同时仍有可能启用智能感知和验证。