eslint-config-vstg

2.3.1 • Public • Published

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?

Package Sidebar

Install

npm i eslint-config-vstg

Weekly Downloads

8

Version

2.3.1

License

MIT

Unpacked Size

20.4 kB

Total Files

21

Last publish

Collaborators

  • vivintsolar-dev