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

@heteng99/linter

v3.1.2

Published

my linter

Readme

我的 linter 工具集合

虽然目前 ESLint 有 auto-fix 功能,但例如 max-len 等规则仍然无法支持 auto-fix,Prettier 还是需要和 ESLint 配合使用才更香。这样一来,配置文件太多太杂太乱,还需要关注很多和项目本身无关的依赖。

于是有了这个仓库,用于整合各种 lint 相关配置、依赖。

🚀Features

目前整合了以下规则:

📦安装

npm install -D @heteng99/linter

☕使用

生成配置文件

使用 lint-cli 生成模板配置文件

npm run lint-cli

执行命令后,执行目录下会生成两个配置文件 eslint.config.jsprettier.config.js

VSCode 相关修改

如果你使用的是 VSCode 并且 ESLint 看起来没有起作用,可能还需要做以下工作:

1. 安装插件

  • 插件:ESLint,作者:Microsoft
  • 插件:Prettier,作者:Prettier

2. 修改配置

在 settings.json 中添加这些配置

3. 查看 OUTPUT

查看控制台的输出,如图表示 ESLint 正常运作,可以做其他事情啦~ img

修改规则、配置

覆盖 Prettier 规则

修改 prettier.config.js 文件,详情见 Prettier 配置参考

/** @type {import("prettier").Config} */
export default {
  // add prettier rules here
};

覆盖 ESLint 规则

修改 eslint.config.js 了,例如我想要:

  • 添加一条 ESLint 规则
  • 添加 ignore 规则
// eslint.config.js
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
import { defineFlatConfig } from 'eslint-define-config';

export default defineFlatConfig([
  eslintPluginPrettierRecommended,
  {
    rules: {
      'max-len': 120,
    },
    ignore: ['dist/**/*.js'],
  },
]);

更多规则配置可参考:

📖参考