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

@lub0v/eslint-config

v0.0.2

Published

TypeScript Eslint config

Readme

eslint-config

Shared eslint configuration for typescript projects.

Uses airbnb style as the base one.

Install

Install the config and all it's peer dependencies:

yarn add --dev @lub0v/eslint-config eslint typescript prettier eslint-config-airbnb-typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-jest eslint-config-prettier eslint-plugin-prettier eslint-plugin-import

You may see thees warnings:

warning "eslint-config-airbnb-typescript > [email protected]" has unmet peer dependency "eslint-plugin-jsx-a11y@^6.3.0".
warning "eslint-config-airbnb-typescript > [email protected]" has unmet peer dependency "eslint-plugin-react@^7.20.0".
warning "eslint-config-airbnb-typescript > [email protected]" has unmet peer dependency "eslint-plugin-react-hooks@^4 || ^3 || ^2.3.0 || ^1.7.0".

That's a known issue and you can safely ignore them.

Setup

add .eslintrc.js to the root of your project with the next contents:

module.exports = {
  extends: ['@lub0v/eslint-config'],
  parserOptions: {
    project: 'tsconfig.json',
  },
};
cat <<EOT > .eslintrc.js
module.exports = {
  extends: ['@lub0v/eslint-config'],
  parserOptions: {
    project: 'tsconfig.json',
  },
};
EOT

notice that it needs tsconfig.json to be present for the parser.

Add .prettierrc.js to the root of your project with the next contents:

module.exports = {
  ...require('@lub0v/eslint-config/prettierrc'),
};
cat <<EOT > .prettierrc.js
module.exports = {
  ...require('@lub0v/eslint-config/prettierrc'),
};
EOT

Scripts

if not already present, add next scripts to the package.json:

"format": "prettier --write '**/(*.ts)'",
"lint": "eslint --fix --no-error-on-unmatched-pattern {index,src/,__tests__/}{*,**/*}.ts",

** make sure to have proper paths in the lint script

Run

From now on, you should be able to run yarn lint and yarn format to run eslint scan/fix on files and format them with prettier.

Integrate with Webstorm / Intellij IDEA

Install Prettier plugin

To do that, go to Preferences -> Plugins, search for Prettier and install it.

Setup prettier plugin to execute on code format & on save

For WebStorm version 2020.+ Go to Preferences, search for Prettier, or go to Languages & Frameworks -> Javascript -> Prettier:

  • make sure to update the Prettier package path to use the node_modules prettier
  • select the checkboxes to on code format and on save.
Setup eslint plugin to run --fix on save

Go to Preferences, search for Eslint, or go to Languages & Frameworks -> Javascript -> Code Quality Tools -> Eslint and select the checkbox for Run eslint --fix on save;

Note that you might need to provide eslint package manually (select the one from installed node_modules).

Integrate with Visual Studio Code

Install Prettier plugin

Install Prettier as VS Code extension

Setup prettier plugin to execute on code format & on save

Within the Code > Preferences > Settings menu, search for Format On Save and make sure to activate it. Afterward, the file should format automatically once you save it.

Install ESLint plugin

Install ESLint as VS Code extension

Setup eslint plugin to run --fix on save

Within the Code > Preferences > Settings menu, search for Code Actions on Save. The first option will say Editor: Code Actions on Save and below that, there will be an option to Edit in settings.json. Click the link to Edit in settings.json. For ESLint to fix errors when you save your file, you will need to write the following code in settings.json:

"editor.codeActionsOnSave": {
  "source.fixAll.eslint": true
},
"eslint.validate": ["typescript", "json", "javascript"]