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

@xmgh/eslint-config-strict-base

v1.1.1

Published

An shareable strict config for eslint

Downloads

8

Readme

@xmgh/eslint-config-strict-base

安装

通过如下命令安装配置包

yarn add -D @xmgh/[email protected] [email protected] [email protected]

如果是webpack工程,需另行安装 eslint-import-resolver-webpack 依赖,执行如下命令即可:

yarn add -D [email protected]

可以直接复制下方的依赖到项目下的 package.json 文件的 devDependencies 字段下,执行 yarn 命令安装

  "eslint-import-resolver-webpack": "0.11.1"

对接步骤

对于新工程,在项目根目录下,复制如下内容至 eslintrc.js 文件内

module.exports = {
  extends: ['@xmgh/eslint-config-strict-base'],
  // 各工程的个性化配置,可以在这里设置覆盖
  rules: {
    // 'no-empty': 'off',
  },
}

对于老工程,安装上述依赖后,启动本地工程,如果有新增报错,在项目根目录下的eslint校验文件内,将相关错误规则关闭掉

将新的校验规则文件放置到想要开启校验的文件夹下,然后重启工程,手动改正相关问题

注意

该配置使用了 sonarjs 校验代码的逻辑合理性,需自行安装 Java JDK,下载链接如下: 点击前往JDK下载页面 下载下来后,直接点击安装,一直下一步就可以,直至安装完成

可搭配 vscode 的 sonarlint、eslint 插件使用