Skip to content

HubSpotWebTeam/wt-eslint-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hubspot Marketing WebTeam ESLint rules for Node.js

This is a list of ESLint rules that are recommended for use with Hubspot Marketing WebTeam projects.

Index

Setup

  1. Install as dev dependency
npm i -D @hs-web-team/eslint-config-node
  1. Add to .eslintrc in project root directory
{
  "extends": "@hs-web-team/eslint-config-node"
}
  1. Extend the eslint on a project basis by adding rules to .eslintrc e.g.
{
  "extends": "@hs-web-team/eslint-config-node",
  "settings": {
    "import/resolver": "webpack"
  }
}

Where to use it

This package is intended to be used as a starting point for ESLint rules for Backend Node.js projects, and not for use in browser environments.