Socket
Socket
Sign inDemoInstall

eslint-config-vstg

Package Overview
Dependencies
220
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

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)


Version published
Weekly downloads
9
decreased by-40%
Maintainers
1
Install size
8.88 MB
Created
Weekly downloads
 

Readme

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

Last updated on 11 Oct 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc