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

eslint-config-promise

v2.0.2

Published

Eslint config for development.

Readme

eslint-config-promise

0: tip nothing 1: warn 2: error

| level | description | eslint | |-------|-------------|--------| | 0 | 一行代码长度不超过 80 | enforce a maximum line length (max-len) | | 0 | 重叠作用域内变量同名 | disallow variable declarations from shadowing variables declared in the outer scope (no-shadow) | | 0 | 末尾分号必写 | require or disallow semicolons instead of ASI (semi) | | 0 | 不对函数参数直接做修改操作 | Disallow Reassignment of Function Parameters (no-param-reassign) | | 2 | 最后一行代码后必须要有空行 | require or disallow newline at the end of files (eol-last) | | 2 | 对象最后属性或数组最后元素后不加逗号 | require or disallow trailing commas (comma-dangle) | | 2 | 不严格要求驼峰风格 | Require Camelcase (camelcase) | | 2 | 函数 () 内需要空格相邻符号可以省略 | Disallow or enforce spaces inside of parentheses (space-in-parens) | | 2 | 对象属性采用简略风格 | Require Object Literal Shorthand Syntax (object-shorthand) | | 2 | {} 内需要空格相邻符号可以省略 | enforce consistent spacing inside braces (object-curly-spacing) | | 2 | [] 内需要空格相邻符号或单元素可以省略 | Disallow or enforce spaces inside of brackets (array-bracket-spacing) | | 2 | 回调函数用箭头函数 | Suggest using arrow functions as callbacks. (prefer-arrow-callback) | | 0 | 箭头函数风格不强制 | Require parens in arrow function arguments (arrow-parens) | | 0 | 箭头函数风格不强制 | Require braces in arrow function body (arrow-body-style) | | 2 | 函数 () 前不加空格 | Require or disallow a space before function parenthesis (space-before-function-paren) | | 2 | 函数 return 不强制指定值 | require return statements to either always or never specify values (consistent-return) | | 0 | 允许运算符 ++ -- | disallow the unary operators ++ and -- (no-plusplus) | | 2 | 忽略 _ 开头结尾的参数/caughtErrors | | Disallow Unused Variables (no-unused-vars) | | 0 | 变量或属性中允许 _ | disallow dangling underscores in identifiers (no-underscore-dangle) | | 0 | 代码块中首尾不强制空行 | require or disallow padding within blocks (padded-blocks) | | 1 | 多种优先级的运算符混合加括号,同级可不加 | Disallow mixes of different operators (no-mixed-operators) | | 0 | 三元运算可以嵌套使用 | disallow nested ternary expressions (no-nested-ternary) | | 0 | 允许位运算符 | disallow bitwise operators (no-bitwise) | | 1 | 异步函数中必须有 yield | Disallow generator functions that do not have yield (require-yield) | | 0 | 类函数中可以不使用 this | Enforce that class methods utilize this (class-methods-use-this) | | 2 | 允许无返回表达式 | Disallow Unused Expressions (no-unused-expressions) | | 0 | 引入文件不强制加后缀名 | eslint-plugin-import/extensions| | 0 | import 后不强制加空行 | eslint-plugin-import/newline-after-import | | 0 | 静态标签可以添加交互事件 | eslint-plugin-jsx-a11y/no-static-element-interactions | | 0 | 第一个属性不强制换行 | eslint-plugin-react/jsx-first-prop-new-line | | 0 | 单文件可以写多个组件 | eslint-plugin-react/no-multi-comp | | 1 | jsx js 文件中都可以写 jsx 语法 |eslint-plugin-react/jsx-filename-extension| | 0 | 组件可以不带 state | eslint-plugin-react/prefer-stateless-function | | 0 | 不强制写 propTypes | eslint-plugin-react/prop-types | | 1 | vdom 关闭跟在属性后 | eslint-plugin-react/jsx-closing-bracket-location | | 1 | 组件函数排序 "static-methods" "lifecycle" "/^(handle|on).+$/" "everything-else" "rendering" | eslint-plugin-react/sort-comp |