我正在使用 nextJS 进行开发,让stylelint验证我的.scss和.css文件。我也在使用styled-jsxorcss-in-js组件级样式(这是一种要求)并且想知道styled-jsx下面是否有一些库要验证是我的 css 代码的代码示例。
<style jsx>{`
.HeadText {
color: ${myColors['color-primary']};
}
`}
</style>
我试过使用这个库,但它只适用于如下静态样式:
<style jsx>{`
.HeadText {
color: red;
bad-property: something; // gives error
}
`}
</style>