wizeline/javascript-style-guide


JavaScript Style Guide

  • Users starred: 5
  • Users forked: 0
  • Users watching: 5
  • Updated at: 2018-05-22 04:14:51

Wizeline Javascript Style Guide

Wizeline's ESLint rules for js environments

Installation

First, install ESLint as a dev dependency

npm install --save-dev eslint

Then, install Wizeline's lintern configs

npm install --save-dev wizeline/eslint-config-wizeline

Finally, add the required peer dependencies. You will be warned after running the above command.

Usage

These configs are divided by environments. Use the one you need for your project.

For example, if you're working with a browser-related stack, you will need to add the following to your project's .eslintrc

{
  "extends": "eslint-config-wizeline/browser"
}

If you're working with a server-related stack, you will need to add the following to your project's .eslintrc

{
  "extends": "eslint-config-wizeline/server"
}