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

eslint-config-qiuye

v0.0.7

Published

A comprehensive ESLint configuration for JavaScript, TypeScript, JSX, TSX, and Vue projects

Downloads

4

Readme

eslint-config-qiuye

一个全面的 ESLint 配置包,支持 JavaScript、TypeScript、JSX、TSX 和 Vue 项目。

特性

  • ✅ 支持 JavaScript、TypeScript、JSX、TSX、Vue 文件
  • ✅ 使用 ESLint 9 Flat Config 格式
  • ✅ 向后兼容旧版本 ESLint 配置
  • ✅ 包含代码质量、格式化和最佳实践规则
  • ✅ 支持 TypeScript 和 Vue 3
  • ✅ 可配置的缩进和代码风格

安装

# npm
npm install -D eslint-config-qiuye

# yarn
yarn add -D eslint-config-qiuye

# pnpm
pnpm add -D eslint-config-qiuye

使用方法

ESLint 9+ (推荐)

在你的 eslint.config.js 文件中:

import qiuyeConfig from 'eslint-config-qiuye'

export default [
    ...qiuyeConfig
]

旧版本 ESLint (向后兼容)

在你的 .eslintrc.js.eslintrc.json 文件中:

module.exports = {
    extends: ['qiuye']
}

支持的规则

代码格式

  • 单引号 (')
  • 无分号
  • 无尾随逗号
  • 对象大括号内需要空格
  • 箭头函数参数按需使用括号

代码质量

  • 禁止重新分配函数参数
  • switch 语句必须有 default 分支
  • 未使用变量检查(支持下划线前缀忽略)

文件类型支持

  • JavaScript/TypeScript: .js, .ts, .mjs, .cjs
  • React: .jsx, .tsx
  • Vue: .vue

插件支持

  • @typescript-eslint - TypeScript 支持
  • eslint-plugin-unicorn - 代码质量规则
  • eslint-plugin-import - 导入/导出规则
  • eslint-plugin-vue - Vue 支持

配置示例

基础项目

// eslint.config.js
import qiuyeConfig from 'eslint-config-qiuye'

export default [
    ...qiuyeConfig
]

自定义配置

// eslint.config.js
import qiuyeConfig from 'eslint-config-qiuye'

export default [
    ...qiuyeConfig,
    {
        rules: {
            // 你的自定义规则
            'no-console': 'warn'
        }
    }
]

版本要求

  • Node.js >= 18.0.0
  • ESLint >= 9.0.0

许可证

MIT