1 个仓库
Verification of CSS selectors against regular expression patterns to enforce naming conventions.
Distinct from String Pattern Validators: Specifically validates CSS selectors, not general strings or package names
Explore 1 awesome GitHub repository matching web development · Selector Pattern Validations. Refine with filters or upvote what's useful.
Stylelint 是一个用于 CSS 和类样式语言的静态代码分析工具和 Linter。它识别错误、强制执行编码约定,并作为 PostCSS 插件在构建流水线期间验证样式表。 该项目通过支持非标准语法脱颖而出,包括用于 SCSS 和 Less 的预处理器解析,以及提取和 Linting 来自 JavaScript、HTML 和模板字面量中嵌入样式的能力。它具有一个自动化修复系统,可程序化地纠正可修复的样式违规以确保一致性。 该系统提供了一个用于创建自定义规则、语法和格式化程序的插件架构。它涵盖了广泛的质量保证能力,包括防止弃用语法、选择器特异性验证以及强制执行命名模式和样式约定。配置通过支持可共享预设和文件特定覆盖的级联合并逻辑进行管理。 该工具可通过命令行界面、程序化 API 和各种编辑器集成进行访问。
Validates class and ID selectors against defined regular expression patterns to enforce naming conventions.