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

@gua-os/eslint-config

v1.0.1

Published

Gua 开源 ESLint flat 配置(Alloy + Vue + TypeScript + Prettier 兼容)

Downloads

79

Readme

@gua-os/eslint-config

封装与 @gua/framework 同源的 ESLint 9 flat 规则栈:@eslint/jstypescript-eslinteslint-plugin-vueeslint-config-alloyeslint-config-prettierglobals

实现语言为 TypeScriptsrc/eslint.config.ts),发布与本地 pnpm install 时通过 tsc 编译到 dist/eslint.config.js;包入口 exports 指向编译产物,无需 jiti。修改源码后执行 pnpm run buildprepare / prepack 也会自动执行)。

docs/编码规范.md 的对齐(本包默认覆盖 Alloy)

在 Alloy 之上增加 codingStandardRules,落实文档中可自动检查的条款:

| 文档要点 | ESLint | | -------- | ------ | | SFC 顺序:<template><script><style> | vue/block-order;关闭已弃用的 vue/component-tags-order | | <script> 必须使用 lang="ts" | vue/block-lang(仅约束 script) | | 样式默认 scoped,允许第二段无 scoped(文档中的全局样式例外) | vue/enforce-style-attributescoped + plain | | 仅 <script setup> 组合式 | vue/component-api-style: ['script-setup'] | | defineProps / defineEmits 用 TS 泛型 | vue/define-props-declarationvue/define-emits-declarationtype-based | | 避免 any | @typescript-eslint/no-explicit-any: warn(渐进;可传入 eslint({ ... }) 改为 error / off) |

文档未在本包中自动落实的示例(仍需评审或另加插件):src/** 下文件 kebab-case、禁止 .js 业务文件、单向数据流与目录结构等。

在业务项目中使用

1. 依赖

pnpm add -D eslint typescript @gua-os/eslint-config
# 或从本仓库子包路径 / npm pack 产物安装,见下

2. eslint.config.mjs

import { eslint } from '@gua-os/eslint-config';

export default eslint({
  // 按需覆盖 codingStandardRules / Alloy,例如关闭 any 提示:
  // '@typescript-eslint/no-explicit-any': 'off',
});

3. 脚本

ESLint 9 推荐:

{
  "scripts": {
    "lint": "eslint . --fix"
  }
}