Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果开发人员在 CSS 文件中编写类名,在 stylelint 或任何其他工具中是否有可能,例如,.somethingRed {}如果项目中已经使用了类似的类名,他会收到该类名已被使用的消息?
.somethingRed {}
这可以在 stylelint 中使用no-duplicate-selectors规则来实现。