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

@fczbkk/eslint-config

v1.0.0

Published

Default ESLint config for personal projects of Riki Fridrich.

Downloads

1

Readme

Default ESLint config for personal projects of Riki Fridrich

How to add to project

Add module @fczbkk/eslint-config as a dev dependency to your project:

npm install @fczbkk/eslint-config --save

Then extend your ESLint config with @fczbkk. For example, if you use .eslintrc.json, it could look like this:

{
    "extends": "@fczbkk"
}

Different linting for development and build

The rules in this config use warn instead of error. This allows you to bash out ugly code while developing, but it will force you to clean it up before you do the build. Here's what you should do:

Create two linter tasks in your project. One for regular development (e.g. eslint) and one for build (e.g. eslint:build):

{
  "scripts": {
      "eslint": "eslint ./src/**/*.js",
      "eslint:build": "npm run eslint -- --max-warnings 0"
  }
}

This way you can use the regular lint task while developing (e.g. as a part of your test watcher task) and it will allow you to do all kinds of stuff (e.g. using console.log), but then you should use the build lint task when building (e.g. as a part of preversion task) and it will prevent you to create a build that contains debug or mis-formatted code.