0.8.0 • Published 8 years ago

@dwolla/eslint-config-dwolla v0.8.0

Weekly downloads
10
License
MIT
Repository
github
Last release
8 years ago

Shared ESLint Rules

Build Status

Usage

Extend the rulesets contained in this config to stay in sync with our conventions. Override any conflicting rules in your local config, but consider contributing them back to this config if we should align to that rule, too.

Base

In your base .eslintrc, extend the es6.js ruleset:

extends: '@dwolla/dwolla/rules/es6'

Extension

Since ESLint traverses the file system looking for .eslintrc files in each directory, you can add additional config files where you use a specific convention beyond the base.

React

extends: '@dwolla/dwolla/rules/react'

Tests

Base

extends: '@dwolla/dwolla/rules/tests/base'

Mocha

extends: '@dwolla/dwolla/rules/tests/mocha'

React

Some overrides to be a little less strict when testing React components

extends: '@dwolla/dwolla/rules/tests/mocha'