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-eslint-config

v1.0.1

Published

ESLint configuration for QES projects

Readme

@qes/eslint-config

一个基于 ESLint 的代码规范配置包,提供了完整的 TypeScript、Vue.js 和 Prettier 集成配置。

安装

npm install --save-dev @qes/eslint-config

使用方法

基本配置

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

import { defineConfig } from '@qes/eslint-config'

export default defineConfig([
  {
    // 你的自定义规则覆盖
    rules: {
      // 在这里添加或覆盖规则
    }
  }
])

与现有项目集成

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

import { defineConfig } from '@qes/eslint-config'

export default defineConfig([
  // 使用基础配置
  ...(await defineConfig()),
  {
    // 项目特定的规则覆盖
    rules: {
      'vue/no-unused-vars': 'warn',
      '@typescript-eslint/no-explicit-any': 'off'
    }
  }
])

特性

  • TypeScript 支持 - 完整的 TypeScript 语法检查和类型检查
  • Vue.js 支持 - Vue 3 组件规范和最佳实践
  • Prettier 集成 - 自动代码格式化
  • 导入排序 - 自动排序 import 语句
  • 代码质量 - 检测潜在的错误和代码质量问题
  • 可扩展 - 易于自定义和扩展

包含的插件

  • @typescript-eslint/eslint-plugin - TypeScript 语法检查
  • @typescript-eslint/parser - TypeScript 解析器
  • eslint-plugin-vue - Vue.js 组件规范
  • eslint-plugin-prettier - Prettier 集成
  • eslint-config-prettier - 禁用与 Prettier 冲突的规则
  • eslint-plugin-perfectionist - 代码排序和格式化
  • eslint-plugin-command - 注释命令支持

要求

  • Node.js >= 16
  • ESLint >= 8.0.0
  • TypeScript >= 4.0.0 (如果使用 TypeScript)

配置说明

TypeScript 配置

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

  • 类型检查 (@typescript-eslint/typedef)
  • 严格的类型规则
  • 导入/导出类型检查

Vue.js 配置

针对 Vue 3 的优化配置:

  • 组件结构规范
  • 模板语法检查
  • 组合式 API 支持

Prettier 集成

自动格式化配置,确保代码风格一致。

许可证

MIT