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

eslint-config-chomosuke

v0.6.0

Published

An opinionated eslint config for typescript based on airbnb

Downloads

97

Readme

eslint-config-chomosuke

This is an opinionated eslint config for typescript based on airbnb-typescript/base & typescript/recommended

This config is published to NPM

Changes on top of airbnb-typescript/base & typecript/recommended:

  • Indent with 4 spaces instead of 2.
    • According to Linux kernel coding style, if you need more than 3 levels of indentation, you’re screwed anyway, and should fix your program.
  • Changed max-len to 80 and not ignoring string & template literal.
    • I have a small screen and I like vertical spliting.
  • Turned off import/prefer-default-export and replaced it with import/no-default-export.
    • Naming things are hard enough already, let's only do it once.
    • This also enables auto import in some IDEs.
    • People will get confused when they see the same thing with different name in different files.
    • max-lines will take care of preventing files exporting too many things.
  • Overridden no-unused-vars to allow and enforce leading _ to indicate intentionally unused vars
    • Enforce all unused vars to be intentional.
    • Unused args could make sense sometimes.
  • Added @typescript-eslint/member-delimiter-style to enforce semicolon style.
    • It's good to have consistency.
  • Added eqeqeq.
    • You almost never want ==. Even when comparing against null it's better to explicitly state if you want to allow undefined or not.
  • Allowed ForOfStatement.
    • Most programmers are more familiar with for loop syntax compared to forEach().
    • Performance shouldn't really be a consideration when using typescript.
  • Disallowed type assertion.
    • Type assertion causes the runtime type to be different than the static type. This can cause great confusion especially when the assertion happens much earlier in the execution.
    • Either write a typeguard or use a run time typechecking library like zod or io-ts instead.
  • Turned off no-use-before-define.
    • It's preferable to have public interfaces at the top of a module because it allows the reader to see the part they are going to use first. This rule forbids that.
  • Added @typescript-eslint/type-annotation-spacing.
    • It's good to have consistency.
  • Turned off no-plusplus & no-minusminus.
    • Most programmers are more familiar with for loop syntax compared to forEach().
    • Most programmers are very familiar with ++ & -- and know most its nuance.
  • Made @typescript-eslint/no-explicit-any an error.
    • any defeats the purpose of typescript, use unknown instead.
    • This should be used with noImplicitAny in tsconfig.
  • No checkLoops for no-constant-condition.
    • Infinite loop are almost always intended.
  • Added @typescript-eslint/no-floating-promises.
    • I've forgotten to await too many times to not have this rule.
  • Added @typescript-eslint/strict-boolean-expressions.
    • It's always better to define explicitly what you do or do not allow. It's less error prone and more intension revealing.
  • Turned off @typescript-eslint/no-inferrable-types.
    • Sometimes we like to write the type annotation explicitely to make our code more readable.
  • Added @typescript-eslint/explicit-member-accessibility.
    • It's good to have consistency.
  • Added max-lines, max-statements, max-depth & complexity.
    • This is aimed to increase cohesion.

Contributing

If you're adding new rules, please add your justification in the readme as well as in the PR.