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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hs-web-team/eslint-config-node

v3.2.0

Published

HubSpot Marketing WebTeam shared configurations for ESLint, Prettier, Stylelint, and Cypress

Downloads

1,444

Readme

Hubspot Marketing WebTeam ESLint Configuration

This package provides ESLint rules and configurations for Hubspot Marketing WebTeam projects, supporting both Node.js backend and browser/React applications.

Index

Node.js Setup

  1. Install as dev dependency

    npm i -D @hs-web-team/eslint-config-node@latest
  2. Add to eslint.config.js in project root directory

    import wtConfig from '@hs-web-team/eslint-config-node';
    
    export default [
      ...wtConfig,
    ];
  3. Extend the eslint on a project basis by adding rules to eslint.config.js e.g.

    import wtConfig from '@hs-web-team/eslint-config-node';
    
    export default [
      // Add project-specific ignores here
      {
        ignores: ['dist/**'],
      },
      // Add project-specific rules here
      {
        rules: {
          'no-console': 'error',
        },
      },
      ...wtConfig, // This will include the shared rules from @hs-web-team/eslint-config-node
    ];

Browser/React Setup

  1. Install as dev dependency

    npm i -D @hs-web-team/eslint-config-node@latest
  2. Add to eslint.config.js in project root directory

    import wtBrowserConfig from '@hs-web-team/eslint-config-node/browser';
    
    export default [
      ...wtBrowserConfig,
    ];
  3. The browser configuration includes:

    • ESLint recommended rules for JavaScript
    • TypeScript support with typescript-eslint
    • React support with eslint-plugin-react
    • React Hooks rules with eslint-plugin-react-hooks
    • Accessibility rules with eslint-plugin-jsx-a11y
    • Browser globals (window, document, etc.) and custom globals (jQuery, $, Invoca)

For detailed browser configuration documentation and migration guides, see examples/browser-usage.md.

Stylelint Setup

This package provides shared Stylelint configuration for SCSS/CSS linting.

  1. Install dependencies

    npm i -D stylelint stylelint-config-standard-scss
  2. Create .stylelintrc.json in project root

    {
      "extends": "@hs-web-team/eslint-config-node/.stylelintrc.json"
    }
  3. Add scripts to package.json

    {
      "scripts": {
        "stylelint:check": "stylelint '**/*.{css,scss}'",
        "stylelint:fix": "stylelint '**/*.{css,scss}' --fix"
      }
    }

For detailed Stylelint configuration documentation, see examples/stylelint-usage.md.

Cypress Setup

This package provides shared Cypress configuration for E2E testing.

  1. Install Cypress

    npm i -D cypress@15

For detailed Cypress configuration and migration documentation, see examples/cypress-usage.md.

Where to use it

This package provides multiple configurations:

  • Node.js configuration (default export): For backend Node.js projects
  • Browser configuration (/browser export): For browser-based projects including React applications
  • Stylelint configuration (.stylelintrc.json export): For SCSS/CSS linting
  • Cypress configuration (cypress.config export): For E2E testing with Cypress
  • Prettier configuration (.prettierrc.json export): For code formatting

Choose the appropriate configurations based on your project needs.

Using the Prettier Scripts

This package includes a utility script to automatically add Prettier configuration to your project.

  1. Run the script:

    node ./node_modules/@hs-web-team/eslint-config-node/bin/add-prettier-scripts.js
  2. The script will:

    • Add prettier:check and prettier:write scripts to your package.json
    • Install Prettier as a dev dependency if not already installed
    • Create a .prettierrc.js file with shared config
    • Create a .prettierignore file with sensible defaults
  3. After installation, you can use the following commands:

    • npm run prettier:check - Check files for formatting issues
    • npm run prettier:write - Automatically fix formatting issues

Migration from v1 to v2

See MIGRATION-V2.md

Migration from v2 to v3

See MIGRATION-V3.md