npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@qes-test/stylelint-config

v1.0.3

Published

A stylelint configuration package for QES projects

Downloads

8

Readme

@qes-test/stylelint-config

一个基于 Stylelint 的代码规范配置包,提供了完整的 CSS、SCSS 和 Vue 文件样式检查配置。

安装

npm install --save-dev @qes-test/stylelint-config

使用方法

基本配置

在你的项目中创建 stylelint.config.mjs 文件:

export default {
  extends: ['@qes-test/stylelint-config'],
  root: true
}

与现有项目集成

如果你已经有 Stylelint 配置,可以这样集成:

export default {
  extends: [
    '@qes-test/stylelint-config'
    // 你的其他配置
  ],
  rules: {
    // 在这里添加或覆盖规则
  }
}

特性

  • CSS 支持 - 完整的 CSS 语法检查和规范
  • SCSS 支持 - SCSS 语法检查和最佳实践
  • Vue 支持 - Vue 单文件组件样式检查
  • Prettier 集成 - 自动代码格式化
  • 属性排序 - 自动排序 CSS 属性
  • 代码质量 - 检测潜在的样式问题和代码质量问题
  • 可扩展 - 易于自定义和扩展

包含的插件

  • stylelint-config-standard - 标准样式规范
  • stylelint-config-recess-order - CSS 属性排序
  • stylelint-scss - SCSS 语法支持
  • stylelint-prettier - Prettier 集成
  • @stylistic/stylelint-plugin - 代码风格检查
  • stylelint-order - 属性排序插件

要求

  • Node.js >= 16
  • Stylelint >= 16.0.0

配置说明

CSS 配置

包包含了完整的 CSS 支持,包括:

  • 标准 CSS 语法检查
  • 属性排序规则
  • 代码风格规范

SCSS 配置

针对 SCSS 的优化配置:

  • SCSS 语法检查
  • 变量和 mixin 支持
  • 嵌套规则检查

Vue 配置

针对 Vue 单文件组件的配置:

  • Vue 特定伪类支持 (:deep, :global)
  • Vue 特定伪元素支持 (v-deep, v-global, v-slotted)
  • 组件样式规范

规则说明

主要规则

  • order/order - CSS 属性排序规则
  • prettier/prettier - Prettier 格式化规则
  • selector-class-pattern - 类名命名规范
  • at-rule-no-unknown - 未知 at 规则检查

忽略的文件

默认忽略以下文件类型:

  • JavaScript 文件 (.js, .jsx)
  • TypeScript 文件 (.ts, .tsx)
  • JSON 文件 (.json)
  • Markdown 文件 (.md)

许可证

MIT