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

0.5.0 • Public • Published

Hubspot Marketing WebTeam ESLint rules for TypeScript

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

https://www.npmjs.com/package/@hs-web-team/eslint-config-ts

Index

Introduction

This is a set of ESLint rules that are recommended for use with Hubspot Marketing WebTeam projects, and can be used in conjunction with the browser or node linting packages.

Note that this package will only apply rules to TypeScript files (.ts and .tsx). It will not apply rules to JavaScript files (.js and .jsx). You must use the browser or node linting packages to use ESLint rules for vanilla JavaScript files.

Setup

  1. Install as dev dependency
npm i -D @hs-web-team/eslint-config-ts
  1. Add to .eslintrc in project root directory
{
  "extends": "@hs-web-team/eslint-config-ts"
}

or when used with the browser/node rules:

{
  "extends": [
    "@hs-web-team/eslint-config-browser", // or "@hs-web-team/eslint-config-node"
    "@hs-web-team/eslint-config-ts"
  ],
}

Migrating from an existing .eslint config

  1. Remove node_modules
  2. Delete package-lock.json
  3. npm install
  4. Re open your vscode/editor workspace
  5. Check if ts linting is working

References

Shareable ESLint Configs Reference

Where to use it

This package is intended to be used in projects that use TypeScript, in conjunction with either the Node or Browser linting packages.

Readme

Keywords

Package Sidebar

Install

npm i @hs-web-team/eslint-config-ts

Weekly Downloads

152

Version

0.5.0

License

ISC

Unpacked Size

3.51 kB

Total Files

3

Last publish

Collaborators

  • samorgan
  • cfritz
  • ahiremath
  • conormalone
  • nmansurov
  • bcarolan
  • cwunder_hubspot
  • dgroechel_hs
  • sasharma
  • gsugrue_npm
  • annagallo-hs
  • rraj_hubspot
  • mbegyn
  • hzahra
  • mlamacchia
  • ralo_alo
  • yjgcharriz
  • damartinez
  • mvalenciahubspot
  • leocifnpm
  • cumana
  • mahad2
  • siva_h
  • kelvinmr
  • iogrizovic
  • pstafford
  • conor_heffernan
  • sduque
  • sdiaz88
  • andresllinasr
  • ronaldtorresn
  • hayala
  • snigam
  • adiazcometa
  • bjacobel
  • henryqdineen
  • troche_hub
  • stevehealy
  • cprince
  • ruthfarrell
  • kimccarthy
  • bpuseyhs
  • vickytran
  • ccameron
  • sgoldenson
  • markelly-hs
  • leahshearer
  • mndhlovu
  • denishubspot
  • mhewitt
  • epayret
  • dmooney
  • kebrahim
  • lopchannorie
  • pwilver
  • tswyter
  • dding
  • tstelmach
  • hs_cfrisoli
  • priedle
  • amichelini
  • lbergin
  • nhodgkiss447
  • dharmeshs
  • lhampson
  • cutlah
  • gwilliamshubspot
  • kelin599
  • dalcantara_hs
  • aulfich-hs
  • samson.yuwono