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

@toolkit-js/iconfig

v1.0.0

Published

A collection of configuration files containing prettier, eslint, stylelint inspired by [fabric](https://github.com/umijs/fabric).

Readme

iconfig

一个包含 prettier,eslint,stylelint 的配置文件合集

A collection of configuration files containing prettier, eslint, stylelint inspired by umi-fabric

Usage

You can install iconfig using npm:

$ npm install @toolkit-js/iconfig --save-dev

Configuration

in .prettierrc.js

const { prettier } = require('@toolkit-js/iconfig');

module.exports = {
  ...prettier,
};

in .eslintrc.js

module.exports = {
  extends: [require.resolve('@toolkit-js/iconfig/lib/eslintrc')],

  rules: {
    // your rules
  },
};

in .stylelintrc.js

module.exports = {
  extends: [require.resolve('@toolkit-js/iconfig/lib/stylelintrc')],

  rules: {
    // your rules
  },
};

prettierOptions

{
  "singleQuote": true,
  "trailingComma": "all",
  "printWidth": 100,
  "proseWrap": "never",
  "tabWidth": 2,
  "endOfLine": "lf"
}

eslintOptions

extends

[
  'airbnb-base',
  'plugin:eslint-comments/recommended',
  'plugin:vue/essential',
  'prettier',
  ...(isTsProject ? ['plugin:@typescript-eslint/recommended'] : []),
];

plugins

['jest', 'unicorn'];

rules

{
  // enforce that class methods use "this"
  // https://eslint.org/docs/rules/class-methods-use-this
  "class-methods-use-this": 0,

  // disallow reassignment of function parameters
  // disallow parameter object manipulation except for specific exclusions
  // rule: https://eslint.org/docs/rules/no-param-reassign.html
  "no-param-reassign": 2,

  // enforce the spacing around the * in generator functions
  // https://eslint.org/docs/rules/generator-star-spacing
  "generator-star-spacing": 0,

  // import sorting
  // https://eslint.org/docs/rules/sort-imports
  "sort-imports": 0,

  // disallow arrow functions where they could be confused with comparisons
  // https://eslint.org/docs/rules/no-confusing-arrow
  "no-confusing-arrow": 0,

  // enforces no braces where they can be omitted
  // https://eslint.org/docs/rules/arrow-body-style
  // TODO: enable requireReturnForObjectLiteral?
  "arrow-body-style": 0,

  // require parens in arrow function arguments
  // https://eslint.org/docs/rules/arrow-parens
  "arrow-parens": 0,

  // enforce consistent line breaks inside function parentheses
  // https://eslint.org/docs/rules/function-paren-newline
  "function-paren-newline": 0,

  // disallow mixed 'LF' and 'CRLF' as linebreaks
  // https://eslint.org/docs/rules/linebreak-style
  "linebreak-style": 0,

  // enforce line breaks between braces
  // https://eslint.org/docs/rules/object-curly-newline
  "object-curly-newline": 0,

  // Enforce the location of arrow function bodies with implicit returns
  // https://eslint.org/docs/rules/implicit-arrow-linebreak
  "implicit-arrow-linebreak": 0,

  // Requires operator at the beginning of the line in multiline statements
  // https://eslint.org/docs/rules/operator-linebreak
  "operator-linebreak": 0,

  // require or disallow space before function opening parenthesis
  // https://eslint.org/docs/rules/space-before-function-paren
  "space-before-function-paren": 0,

  // disallow use of Object.prototypes builtins directly
  // https://eslint.org/docs/rules/no-prototype-builtins
  "no-prototype-builtins": 0,

  "import/no-unresolved": 0,
  "import/order": 0,
  "import/no-named-as-default": 0,
  "import/no-cycle": 0,
  "import/prefer-default-export": 0,
  "import/no-default-export": 0,
  "import/no-extraneous-dependencies": 0,
  "import/named": 0,
  "import/no-named-as-default-member": 0,
  "import/no-duplicates": 0,
  "import/no-self-import": 0,
  "import/extensions": 0,
  "import/no-useless-path-segments": 0,
  "eslint-comments/no-unlimited-disable": 0,
  "unicorn/prevent-abbreviations": 0
}

stylelintOptions

extends

[
  'stylelint-config-standard',
  'stylelint-config-css-modules',
  'stylelint-config-rational-order',
  'stylelint-config-prettier',
],

plugins

[
  'stylelint-order',
  'stylelint-no-unsupported-browser-features',
  'stylelint-declaration-block-no-ignored-properties',
];

rules

{
  "font-family-no-missing-generic-family-keyword": null, // iconfont
  "function-calc-no-invalid": null,
  "function-url-quotes": "always",
  "no-descending-specificity": null,
  "unit-no-unknown": [
    true,
    {
      "ignoreUnits": ["rpx"]
    }
  ],
  "plugin/declaration-block-no-ignored-properties": true
}