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

@tsoul/eslint-config

v1.0.2

Published

ESLint configuration for Web Boot projects

Readme

@tsoul/eslint-config

Web Boot 项目的 ESLint 配置包,提供了针对 Vue、React、Svelte 等框架的 ESLint 规则集。

特性

  • 🎯 开箱即用的配置
  • 🔄 支持多框架(Vue/React/Svelte)
  • 📦 基于 ESLint Flat Config
  • 🚀 TypeScript 支持
  • 🎨 UnoCSS 支持
  • 💅 Prettier 集成

安装

# npm
npm install -D @tsoul/eslint-config eslint@^9.0.0

# yarn
yarn add -D @tsoul/eslint-config eslint@^9.0.0

# pnpm
pnpm add -D @tsoul/eslint-config eslint@^9.0.0

使用方法

Vue 项目

// eslint.config.mjs
import webboot from '@tsoul/eslint-config/vue'

export default webboot

React 项目

// eslint.config.mjs
import webboot from '@tsoul/eslint-config/react'

export default webboot

Svelte 项目

// eslint.config.mjs
import webboot from '@tsoul/eslint-config/svelte'

export default webboot

TypeScript 项目

// eslint.config.mjs
import webboot from '@tsoul/eslint-config'

export default webboot

配置说明

Vue 规则集

主要包含以下规则:

  • Vue 3 基础规则(vue3-essential)
  • Vue 3 推荐规则(vue3-recommended)
  • 自定义规则:
    • vue/require-default-prop: props 必须要有默认值
    • vue/multi-word-component-names: 关闭组件文件名必须两个单词的限制
    • vue/no-undef-components: 允许 tsoul、el、router 开头的未定义组件

TypeScript 规则集

  • 严格的类型检查
  • 导入/导出规则
  • 代码风格规则

JavaScript 规则集

  • ES6+ 语法支持
  • 最佳实践规则
  • 代码风格规则

通用功能

  • 文件忽略配置
  • UnoCSS 支持
  • Prettier 集成

自定义配置

如果需要覆盖默认配置,可以这样做:

// eslint.config.mjs
import webboot from '@tsoul/eslint-config/vue'

export default [
	...webboot,
	{
		rules: {
			// 你的自定义规则
			'vue/require-default-prop': 'off',
		},
	},
]

VS Code 配置

推荐在 VS Code 中安装 ESLint 插件,并添加以下配置:

{
	"editor.codeActionsOnSave": {
		"source.fixAll.eslint": true
	},
	"eslint.validate": ["javascript", "typescript", "vue", "react", "svelte"]
}

更多信息

License

MIT