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

warlock-config

v1.2.0

Published

Config for eslint, prettier, husky and lint-staged.

Readme

warlock-config

Getting Started

Simply download this package as a devDependency with yarn add -D warlock-config.

Once it's downloaded run the command yarn warlock-config-setup This command will create eslint/prettier/husky config files if they aren't already present within your project.

Husky/lint-staged work together to provide git-hooks. Here are the following hooks/commands that are called:

pre-commit

  • prettier - writes all js/jsx files and adds them to stage
  • eslint - lints the staged files and exits if there are any errors

More hooks will be added soon

dependencies:

If you already have config files setup

For eslint, simply add "warlock" to the extends field.

Husky and Lint-staged config files must be able to import objects. Really just make sure that you import them from warlock-config/husky and warlock-config/lintstaged.

Prettier Rules

For the most part, the config file is pretty vanilla. I just have a few things I like to enforce.

  • useTab - For spacing consistency, tabs should be used instead of spaces.
  • semi - Honestly, I hope to never see a semicolon in JS ever again.
  • singleQuote - Single quotes should always be used for strings and double quotes should always be used for JSX.
  • trailingComma - All objects, arrays, etc should have a trailing comma.

Future Changes

  • Add config for Typescript formatting
  • Add config to run tests during pre-commit
  • Change prettier to write on git add rather than git commit

also

Let me know what you think!