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

@colorless/eslint-config

v0.0.0

Published

ESlint是代码质量检测的工具,它通过静态扫描的方式结合相对应的代码编写规范,让你在开发过程中发现其代码中出现的问题,避免将问题遗留至运行时。想要了解更多信息请移步[官网](https://prettier.io/)

Downloads

5

Readme

@colorless/eslint-config

ESlint是代码质量检测的工具,它通过静态扫描的方式结合相对应的代码编写规范,让你在开发过程中发现其代码中出现的问题,避免将问题遗留至运行时。想要了解更多信息请移步官网

本项目提供了开箱即用的团队内部的统一代码质量标准,项目中配合git hooks即可在每一次提交代码对其进行质量检测。

规则列表

| 规则 | 说明 | 详细的规则说明 | | ------------------------------ | ------------------------ | ------------------------------------------------- | | @typescript-eslint/recommended | typescript的业界最佳实践 | 详细规则 | | eslint:recommended | 业界javascript的最佳实践 | 详细规则 | | vue/vue3-recommended | vue3官方最佳实践 | 详细规则 |

如何使用

Step.1 安装规范包

pnpm add @colorless/eslint-config -D

Step.2 在eslint的配置文件(..eslintrc.js)中进行配置

module.exports = {
  root: true,
  env: {
    browser: true,
    node: true
  },
  extends: '@colorless/eslint-config'
}

配置说明

本项目提供了两种eslint配置

  • vue环境
  • typescript环境

vue环境

如果你的项目是一个运行在浏览器端的vue 3项目,则可以使用默认的配置导出,或者指定其配置文件:

module.exports = {
  root: true,
  env: {
    browser: true,
    node: true
  },
  // 包的默认导出是vue3的规范
  extends: '@colorless/eslint-config'
}

typescript环境

如果你的项目是一个纯typescript项目,那么可能不需要其他不必要的lint,那么你可以使用@colorless/eslint-config/typescript这个规范,它将只包含在纯typescript下应该包含的规则

module.exports = {
  root: true,
  env: {
    browser: true,
    node: true
  },
  // 包的默认导出是vue3的规范
  extends: '@colorless/eslint-config/typescript'
}