New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-vstg

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-vstg

[![npm version](https://badge.fury.io/js/eslint-config-vstg.svg)](http://badge.fury.io/js/eslint-config-vstg)

  • 2.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-vstg

npm version

This package provides Vivint Solar Technology Group's .eslintrc as an extensible shared config.

Usage

We export multiple ESLint configurations for your usage.

See ESlint config docs for more information.

vstg

Our default export contains all of our ESLint rules, including ECMAScript 6.

  1. Install the package:
npm install --save-dev eslint-config-vstg
  1. Add "extends": "vstg" to your .eslintrc

vstg/browser

This export is used for all raw browser-based code, not including code using webpack or other transpiling mechanisms. It should require support for our current browser support matrix.

Add "extends": "vstg/browser" or "extends": [ "vstg", "vstg/browser"] to your .eslintrc

vstg/lambda

This export is used for all lambda-based code. The only difference it it sets the Node version to 4.x, since that's what Lambda supports.

Add "extends": "vstg/lambda" or "extends": [ "vstg", "vstg/lambda"] to your .eslintrc

vstg/testing

This export is easy for all testing code. It adds the mocha, jest, and jasmine environments, and it allows things like magic numbers, and console.logs.

Add "extends": "vstg/testing" or "extends": [ "vstg", "vstg/testing"] to the .eslintrc in your testing directory

vstg/modules

This export is used for implementations that support Harmony Modules (so probably Babel).

Add "extends": "vstg/modules" or "extends": [ "vstg", "vstg/modules"] to your .eslintrc

vstg/react

This export is used for React.js implementations. They should also be using Babel/Webpack or something for delivery, so it includes Harmony Modules.

Add "extends": "vstg/react" or "extends": [ "vstg", "vstg/react"] to your .eslintrc

How can we improve this config?

Yeah, how?

Keywords

FAQs

Package last updated on 11 Oct 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc