Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dwolla/eslint-config-dwolla


https://github.com/dwolla/eslint-config-dwolla

Last synced: about 10 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Shared ESLint Rules

[![Build Status](https://img.shields.io/travis/Dwolla/eslint-config-dwolla/master.svg?style=flat)](https://travis-ci.org/Dwolla/eslint-config-dwolla)

## 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'
```