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

@jeromefitz/codestyle

v8.0.28

Published

ESLint + TypeScript + Prettier + Lint Staged

Downloads

280

Readme

@jeromefitz/codestyle

Overview

  • 🚨️ eslint + @typescript-eslint
  • 🎭️ lint-staged
  • 📐️ prettier + pretty-quick
  • 🆎️ TypeScript Config

Installation

yarn add @jeromefitz/codestyle --dev

Husky

I tend to use this with husky (w/ is-ci pinst), feel free to look at how this monorepo has it set up to follow / alter how you would like to implement.

  • ./husky

Overrides

ESLint + TypeScript

./.eslintrc.cjs

const config = require('@jeromefitz/codestyle/.eslintrc.next.cjs')

module.exports = {
  ...config,
  parser: '@babel/eslint-parser',
}

📝️ Note: Depending on if you are lifting packages in your repo, you may need to explicitly pass the parser.

lint-staged

./lint-staged.config.mjs

import config from '@jeromefitz/codestyle/lint-staged.config.js'

export default config

Prettier

./.prettierrc.cjs

const config = require('@jeromefitz/codestyle/.prettierrc.cjs')

module.exports = {
  ...config,
}

TypeScript

./tsconfig.json

{
  "extends": "@jeromefitz/codestyle/tsconfig.node.json"
}

Currently there are the following to extend:

  • tsconfig.jest.json
  • tsconfig.node.json
  • tsconfig.react-native.json
  • tsconfig.react.json

Scripts

Some packages have you call directly like yarn codestyle to run everything, however, I tend to prefer the opt-in / override approach.

If you want to add the following to your package.json scripts, these are the current recommendations:

{
  "scripts": {
    "lint:eslint": "eslint ./src --ext cjs,js,jsx,mjs,ts,tsx --max-warnings=0",
    "lint:prettier": "prettier \"./src/**/*.{cjs,js,jsx,mjs,ts,tsx,json,md,mdx,css,html,yml,yaml,scss}\" --ignore-unknown --loglevel warn",
    "lint:typescript": "tsc --noEmit --declaration",
    "lint": "yarn lint:prettier --check && yarn lint:eslint && yarn lint:typescript",
    "lint:fix": "yarn lint:eslint --fix && yarn lint:prettier --write"
  }
}

Then with lint-staged you can just run yarn lint or pass yarn lint --fix (I believe yarn lint:fix may be not needed).