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

@monkvision/eslint-config-base

v4.0.19

Published

The base ESLint config used in MonkJs projects

Downloads

832

Readme

@monkvision/eslint-config-base

This package provides the base ESlint configuration used in MonkJs projects.

Installation

To install this eslint configuration, simply run the following command :

yarn add -D @monkvision/eslint-config-base

Until ESlint flat config is implemented (see the note below), you will also need to install the required peer dependencies.

How to Use

To extend this config, simply place the following snipplet in your .eslintrc.js to include the config :

module.exports = {
  extends: ['@monkvision/eslint-config-base'],
};

A note reguarding ESlint Flat Configs

Due to the limitations of how ESlint works right now, shared ESlint configurations need to specify their dependencies (such as other configs, plugins etc...) as peer dependencies. This forces developers that want to use our config to manually download each one of our dependencies. This is obviously very cumbersome and kind of misses the whole point of a shared config. This is even more true when it comes to monorepos. There are ways of bypassing this limitation (@rushstack/eslint-patch etc...) but they come with their own limitations and are considered as "patches" rather than actual features.

However, in August 2022, the ESlint team came up with a new config system called ESlint Flat Config. This new config system allows (among other things) for a shared config to declare its dependencies as dev (or regular) dependencies, and include them in the config file (by importing them as a node package). This is obviously great news for us, since it basically means that all the issues listed in the previous paragraph will be solved. However, we need to give time to ESlint configs and plugins packages to adapt to this new config system. For instance, the typescript-eslint package created an issue on the 08/11 to update their config system.

This means that for now, we need to stick with the old config and its peer dependencies, and keep an eye on the package updates until the new ESlint config system is mature enough for us to migrate to it.

Some references to read more about this subject :

  • https://github.com/eslint/eslint/issues/3458
  • https://eslint.org/blog/2022/08/new-config-system-part-1/
  • https://eslint.org/blog/2022/08/new-config-system-part-2/
  • https://eslint.org/blog/2022/08/new-config-system-part-3/
  • https://github.com/eslint/eslint/issues/13481
  • https://eslint.org/docs/latest/user-guide/configuring/configuration-files-new
  • https://github.com/typescript-eslint/typescript-eslint/issues/5938