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

@volusion/eslint-config

v1.1.0

Published

Shareable ESLint config for typescript

Downloads

2

Readme

Volusion ESLint Configs

Shareable ESLint configuration files

How to use it

  1. Install the package as a development dependency:
npm install --save-dev @volusion/eslint-config
  1. Create an eslint config file in your project, with @volusion/eslint-config as an extension.

.eslintrc.js:

module.exports = {
    "extends": [
        "@volusion/eslint-config"
    ],
    "rules": {
        // Place custom overrides for your project here.
    }
}

Advanced Usage

To use something other than the default config, update your configuration to match the name of the config file in this repo that you want to extend.

For a typescript project, your config might look like this:

.eslintrc.js:

module.exports = {
    "extends": [
        "@volusion/eslint-config",
        "@volusion/eslint-config/typescript", // matches `typescript.js` in the root of this package.
        "@volusion/eslint-config/react", // for react projects, matches `react.js`
    ],
    "rules": {
        // Place custom overrides for your project here.
    }
}

Developer Guide

Modifying an existing config

All configs are located in the lib directory. Find the one you want to modify, and treat it like a standard eslint config file. Keep the individual config scopes small: don't put non-typescript rules in lib/typescript.js, for example.

Adding a new config

  1. Add your new config file to the lib directory. (i.e. ./lib/react.js)
  2. Add a file to the root of the project to import the config from lib. ./react.js
module.exports = require("./lib/react.js");

File Structure

  • Configs are located in ./lib/, then re-exported from the root for consumption by dependent packages. This lets dependents reference individual configs without having to know the file structure of this repo (e.g. @volusion/eslint-config/react instead of @volusion/eslint-config/lib/react).
  • ./.eslintrc.js and ./.prettierrc.js (with the preceeding .) are the local configuration files for linting and formatting this repo.