Skip to content
ESLint Rules And StyleGuide
JavaScript
Branch: master
Clone or download
Pull request Compare This branch is even with dialexa:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
rules
.editorconfig
.eslintrc
.gitignore
.npmrc
README.md
base.js
ember.js
es6.js
index.js
node-es6.js
package.json
react.js
yarn.lock

README.md

Dialexa Javascript Style Guide

Installation

 npm install @dialexa/eslint-config-dialexa --save-dev

Lastly, make sure you have eslint installed in your project

npm install eslint --save-dev

If you are using the React settings, make sure you have babel-eslint installed, as well as eslint-plugin-react

npm install babel-eslint eslint-plugin-react --save-dev

Usage

Add one of the following to your project's .eslintrc file (based on your project type).

ES5

{
  "extends": "@dialexa/eslint-config-dialexa"
}

ES6

{
  "extends": "@dialexa/eslint-config-dialexa/es6"
}

Node 4.x +

{
  "extends": "@dialexa/eslint-config-dialexa/node-es6"
}

Ember

{
  "extends": "@dialexa/eslint-config-dialexa/ember"
}

React

{
  "extends": "@dialexa/eslint-config-dialexa/react"
}
You can’t perform that action at this time.