You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

eslint-config-wt-browser

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

eslint-config-wt-browser

HubSpot Marketing WebTeam ESLint rules for Browsers

0.1.1
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Hubspot Marketing WebTeam ESLing rules for Browsers

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

https://www.npmjs.com/package/eslint-config-wt-browser

Index

Introduction

This is a set of ESLint rules that are recommended for use with Hubspot Marketing WebTeam projects, and it also include StyleLint as a linter for CSS/SCSS files.

Setup

  • Install as dev dependency
npm i -D eslint-config-wt-browser
  • Add to .eslintrc in project root directory
{
  "extends": "eslint-config-wt-browser"
}
  • Extend the eslint on a project basis by adding rules to .eslintrc e.g.
{
  "extends": "eslint-config-wt-browser",
  "settings": {
    "import/resolver": "webpack"
  }
}
  • Extend the style-lint rules on a project basis by adding a.stylelintrc.json:
{
  "extends": "./node_modules/eslint-config-wt-browser/.stylelintrc.json",
  "ignoreFiles": [
    // any folders to ignore
    // e.g. "./dist/**/*.{css,scss,sass}"
  ]
}

Migrating from an exisiting .eslint config

  • Remove node_modules
  • Delete package-lock.json
  • npm i
  • Re open your vscode/editor workspace
  • Check if js linting and sass linting works

Reference https://eslint.org/docs/developer-guide/shareable-configs

Where to use it

This package is intended to be used as a starting point for ESLint rules for FrontEnd projects, and should be used in browser environments.

Keywords

eslint

FAQs

Package last updated on 29 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts