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-neutral

v1.0.3

Published

⚪️ ESLint config that catches strictly the errors and nothing more

Downloads

4

Readme

⚪️ ESLint-config-neutral

ESLint Shareable Config that catches strictly the errors and nothing more.

With that config, you can code however you want. This config is a good choice for those who don't use ESLint at all because they feel like linters restrict them. By default, it doesn't dictate any opinionated things. Strictly the errors.

Also, this config is a good starter, akin to normalize.css, but for ESLint. Feel free to extend it to your liking.

Usage

npm install --save-dev eslint-config-neutral

Then, add this to your .eslintrc file:

{
   "extends": "neutral"
}

You can override rules or add yours directly in .eslintrc file.

Overview

|Rule |Description |Comment | |-------------------------|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------| |for-direction |enforce for loop update clause moving the counter in the right direction |One wrong symbol will produce an unintended infinite loop that doesn’t seem wrong at first glance. | |no-async-promise-executor|disallow using an async function as a Promise executor |Promise won’t be rejected if a runtime error happens. | |no-await-in-loop |disallow await inside of loops |await in loops doesn’t lead to asynchronous execution. | |no-compare-neg-zero |disallow comparing against -0 |Comparing against -0 is very odd and unlikely. Programmers who didn’t research this topic specifically hardly know the answer.| |no-cond-assign |disallow assignment operators in conditional expressions |A classic mistake. | |no-dupe-args |disallow duplicate arguments in function definitions | | |no-dupe-else-if |disallow duplicate conditions in if-else-if chains |Leads to the code that looks like it will execute while it won’t. | |no-dupe-keys |disallow duplicate keys in object literals | | |no-duplicate-case |disallow duplicate case labels | | |no-invalid-regexp |disallow invalid regular expression strings in RegExp constructors | | |no-loss-of-precision |disallow literal numbers that lose precision |Precision errors are notoriously hard to debug. | |no-obj-calls |disallow calling global object properties as functions |Things like Math() are always errors. | |no-unsafe-negation |disallow negating the left operand of relational operators |if (!key in foo) meaning “check if the key exist in an object” won’t produce the correct results. | |require-atomic-updates |disallow assignments that can lead to race conditions due to usage of await or yield| | |use-isnan |require calls to isNaN() when checking for NaN |Comparing against NaN is pointless. isNaN() function should be used instead. | |valid-typeof |enforce comparing typeof expressions against valid strings | | |no-const-assign |disallow reassigning const variables | | |no-dupe-class-members |disallow duplicate class members | | |no-duplicate-imports |disallow duplicate module imports | | |no-new-symbol |disallow new operators with the Symbol object |new Symbol() is a counterintuitive error. | |no-this-before-super |disallow this / super before calling super() in constructors | |

License

BSL-1.0. © Miloslav Voloskov.