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

@mgtitimoli/eslint-config

v0.3.0

Published

A predictable and strict ESLint Shareable Config

Downloads

2

Readme

@mgtitimoli / eslint-config

A predictable and strict ESLint Shareable Config

Installation

$ npm install --save-dev eslint @mgtitimoli/eslint-config

This configuration just specifies a group of ESLint settings, this is why we need to install eslint, since by its use (also have a look to the available integrations), is how we check our rules are respected

Usage

[ DISCLAIMER ]

I decided not to extend eslint:recommended configuration to support setups where this is not desired (I personally have not found any one yet, but it might appear... long silence... someday...). Anyway, if you want to use it together with this config, and I highly recommend you to do that, it is as simple as using on each part of the documentation where it says:

"@mgtitimoli/eslint-config"

the following instead:

[
    "eslint:recommended",
    "@mgtitimoli/eslint-config"
]

We can do this since ESLint does not restrict you to extend just one configuration file

General

ESLint allows being configured using a widely amount of flavours, but I personally find the followings very practical:

  • Place all the settings under an eslintConfig entry in your package.json:
{
    "name": "my-awesome-project",
    "eslintConfig": {
        "extends": "@mgtitimoli/eslint-config"
    }
}
  • Create an .eslintrc.json to hold all the configuration:
{
    "extends": "@mgtitimoli/eslint-config"
}

Custom

This configuration, at the same time, extends the following ones (also present in this package)

You can pick just the one(s) that you need, specifying them as follows:

  • For example, if you would want to use best-practices and variables configurations, then your .eslintrc.json should contain:
{
    "extends": [
        "@mgtitimoli/eslint-config/best-practices",
        "@mgtitimoli/eslint-config/variables"
    ]
}

About

I will enumerate below some of the reasons that pushed me to publish this package:

  1. The obvious one: it allows anyone to be able to use it just doing a simple npm install
  2. I have been using this configuration in a lot of projects and I really liked their resulting shape and low complexity
  3. It helps me sharing my passion about code quality and best practices, and encourages teams to take some time to discuss about this

Other configurations

You might also be interested in the following configurations:

License

Unlicense