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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@tbhesswebber/eslint-config

v2.3.0

Published

A collection of my preferred eslint configurations

Downloads

11

Readme

Eslint Config

Getting Started

First, install the package with your preferred package manager

npm install @tbhesswebber/eslint-config

:warning:Note: make sure that you install the peer dependencies for whichever configuration you are using (see below).

Next, add the config to your Eslint config via the extends property (see the official documentation here).

{
    "extends": ["@tbhesswebber"]
}

If using a named config, make sure that you use @tbhesswebber/eslint-config/<config-name>

Configs

Default

This is the default config and it is the same as using core, but without @tbhesswebber/eslint-config/format, which you should apply yourself (if you want to use it). Effectively, you should use this configuration if you have additional configurations to extend that take precedence over this one and need to apply the formatting rules at the end.

Peer Dependencies

You can manually install all of the peer dependencies from every configuration below or use the install-peerdeps package via npx install-peerdeps -D @tbhesswebber/eslint-config

core

This configuration is intended to be a complete "extends" clause for a standard JavaScript project (see note for TypeScript or React projects). This is generally satisfactory for getting a project bootstrapped quickly, kicking the can of loosening the configuration or making it more targeted to the current project down the road.

:warning:Note: If you are using TypeScript and/or React, you should use the default configuration alongside the typescript/react and format configurations instead of this one.

Peer Dependencies

  • eslint-plugin-unicorn
  • eslint-config-airbnb-base
  • eslint-plugin-eslint-comments
  • eslint-plugin-import

format

This config is exclusively for formatting configurations and should always appear last in your extends array.

Peer Dependencies

  • eslint-plugin-prettier
  • eslint-config-prettier
  • prettier

typescript

This config enables a highly opinionated set of rules for TypeScript. This will be much slower to run without a cache, which shouldn't be an issue for IDEs, but may have an impact on CI costs.

Peer Dependencies

  • typescript
  • @typescript-eslint/parser
  • @typescript-eslint/eslint-plugin
  • eslint-import-resolver-typescript
  • eslint-plugin-import

react

This config enables a number of rules for React projects, including warnings on possible security and performance problems.

Peer Dependencies

  • eslint-config-airbnb
  • eslint-plugin-import
  • eslint-plugin-react
  • eslint-plugin-react-hooks
  • eslint-plugin-jsx-a11y