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

eslint-config-protect-me-from-my-stupidity

v10.1.0

Published

An opinionated ESLint configuration that shall protect you from your stupidity when writing JavaScript.

Downloads

279

Readme

Protect Me From My Stupidity

Available from NPM Built using GitHub Action

An opinionated configuration for ESLint that shall protect you from your stupidity when writing JavaScript.

Usage

Add this to your ESLint configuration.

{
  "extends" : "protect-me-from-my-stupidity"
}

You can use configuration extensions to further cater for more specific scenarios, for example:

{
  "extends" : [
    "protect-me-from-my-stupidity",
    "protect-me-from-my-stupidity/but/let-my-code-look-stupid"
  ]
}

Configuration extensions

| Configuration | Usage | | --------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | and/from-writing-stupid-vue-components | Introduces additional rules for Vue components. At the moment any Vue 3.0 rules that involve deprecating Vue 2.0 feature are turned off. | | and/from-writing-stupid-node-applications | Introduces additional rules for Node applications. | | but/let-my-code-look-stupid | Stops all code style checks. | | but/let-me-write-stupid-tests | Loosens up some rules for writing test specifications. | | but/let-my-vue-components-look-stupid | Stops all code style checks for Vue components. | | but/let-my-node-applications-look-stupid | Stops all code style checks for Node applications. |

Parser

This project configures ESLint to parse JavaScript with the following in mind by default:

  • ECMAScript modules are enabled.
  • All features up to ECMAScript 2021 are enabled.

Note: This project makes no other assumption about your JavaScript environment, you must configure that yourself. See https://eslint.org/docs/user-guide/configuring#specifying-environments.

Plugins

This project currently includes configuration for the following plugins:

| Plugin | Required dependency | | ---------------------------------------------------------------------------------------- | --------------------------------------------- | | eslint-plugin-import | Yes | | eslint-plugin-promise | Yes | | @stylistic/eslint-plugin-js | Yes | | eslint-plugin-vue | Only when using vue related configuration. | | eslint-plugin-node | Only when using node related configuration. |

Note: You will have to install the above plugins yourself as they are peer dependencies.

Semantic versioning

This project follows a semantic versioning policy that aims not to surprise you.

Patch release

  • Updating an existing rule that will result in ESLint reporting fewer errors.

Minor release

  • Updating an existing rule that will result in ESLint reporting different or more errors.
  • Adding a new rule.

Major release

  • Removing support for an old version of ESLint.
  • Adding support for a new plugin.
  • Removing support for an old version of an existing plugin.
  • Adding a new configuration.

Note: It is advised that you only take patch versions using tilde ranges.

Getting started

This project is available through the Node Package Manager (NPM), so you can install it like so:

npm install eslint-config-protect-me-from-my-stupidity --save-dev

Disclaimer

Finally, if you get offended by my use of the word stupid. It is just a joke.