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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@qingshaner/eslint-config

v1.0.0

Published

ESLint configs for qingshaner

Downloads

21

Readme

ESLint Config

A collection of ESLint configurations for different types of projects.

To use this configuration, it's highly recommended to include Biome as part of your linter tool for optimal results.

📦 Installation

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

🚀 Usage

// eslint.config.mjs

import { resolve } from 'node:path'

import { presetESLintConfig } from '@qingshaner/eslint-config'

const ROOT = import.meta.dirname // this require Node.js 20+

// Node.js < 20
// const ROOT = new URL('.', import.meta.url).pathname

export default presetESLintConfig({
  a11y: true,
  biome: true,
  cspell: { configFile: resolve(ROOT, 'cspell.yaml') }, // optional
  ignores: [resolve(ROOT, '.gitignore')],
  jsonc: true,
  perfectionist: true,
  prettier: true,
  typescript: [ROOT],
  vue: true
})

Biome

Also provide a optional Biome configuration.

[!NOTE] Biome < 2.0 is not supported. Please upgrade to >= 2.1.

// biome.json

{
  "$schema": "node_modules/@biomejs/biome/configuration_schema.json",
  "extends": ["@qingshaner/eslint-config/biome"],
  "files": {
    "ignoreUnknown": true
  },
  "javascript": {
    "jsxRuntime": "transparent"
  }
}

CSpell

You can import a cspell configuration file.

// cspell.yaml

# yaml-language-server: $schema=https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json

import:
  - '@qingshaner/eslint-config/cspell'

🧩 Builtin Plugins

A11y

Include plugins

Biome

Disable Biome has implemented rules.

react-plugin-refresh, react-plugin-react-hooks is replaced by Biome.

JavaScript, TypeScript, CSS is formatted by Biome.

CSpell

@cspell/eslint-plugin is used to check spelling errors.

JSON or JSONC

antfu/sort/package-json is used to sort package.json. antfu/sort/tsconfig-json is used to sort *.tsconfig.json.

Include plugins

Perfectionist

Sort import statements, sort object properties.

Include plugins

Prettier

Format code with Prettier, if the file can't be formatted by Biome, it will be formatted by Prettier.

Include plugins

React

For React project.

Include plugins

TypeScript

For TypeScript project.

Include plugins

UnoCSS

Include plugins

Vue

For Vue2 | Vue3 project.

Include plugins

✨ Inspiration

📄 License

MIT License © 2023-Present qingshaner