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

dryer

v0.1.5

Published

Generate lint configurations from scratch

Downloads

1

Readme

dryer

dryer is a tool for generating lint configurations from scratch. dryer will run a linter with all rules enabled to determine what conventions your code already follows.

Usage

You can install dryer using npm:

npm install -g dryer

You can run dryer by providing a path:

dryer .

You can also provide a threshold for setting rules to warn based on the failure count:

dryer . 5

Guide

The following process is recommended:

  1. Run dryer on your project - this gives you a .eslintrc file with zero failures!
  2. Run eslint
  3. Fix any syntax errors
  4. Fix warnings
  5. Configure rules that warn, to error
  6. Identify additional rules that you'd like to enable!

After step 1, you're done with dryer. It gives you a starting point for your linting configs; the rest is up to you!

About

I recently transitioned my company's main repos from JSHint to ESLint. I hand-crafted an initial .eslintrc file through trial-and-error, until I had a configuration with no errors, and a handful of warnings. To make this process easier, I've written this tool to auto-generate linting configs with a similar heuristic.

Under Development

dryer is under active development and its API may change at any time. Currently, only eslint is supported, but the plan is to add other linters in the future.

Current Limitations

There are a handful of limitations currently:

  • only works with ESLint
  • does not read an existing .eslintrc
  • overwrites any existing .eslintrc
  • does not configure:
    • environment
    • globals
    • parser
  • all rules are configured, even when could be excluded (enabled by default)

Some rules that have options that are innumerable. Those rules will never be auto-configurable beyond a suggested default.

Help, Issues and Support

Ask questions, post issues, and share suggestions using Waffle. Waffle is a kanban board backed by GitHub Issues. You can also tweet me @WillsLab.

License

MIT © Will Klein