# eslint-config-earnest-es7
Earnest's ESLint config for ES7

## Usage

1. Add all of the `"devDependencies"` listed in [package.json](https://github.com/meetearnest/eslint-config-earnest-es7/blob/master/package.json) to your project's `"devDependencies"` section.

2. Add an additional entry to `"devDependencies"`:

    ```json
    "eslint-config-earnest-es7": "latest"
    ```

3. Add a root level `.eslintrc` that references this package

    ```json
    { "extends": "earnest" }
    ```

4. Add another `.eslintrc` to your `test` folder that supports mocha

    ```json
    {
      "extends": "earnest",
      "env": { "mocha": true }
    }
    ```

5. (Recommended) Add the following entries to your `package.json` for simplified CLI access to linting:

    ```json
    "scripts": {
      "lint": "./node_modules/.bin/eslint .",
      "lint-changed": "git diff --name-only --cached --relative | grep '\\.js$' | xargs ./node_modules/.bin/eslint"
    }
    ```

6. (Recommended) Setup your editor to support inline ESLint support. For Sublime Text, that means `npm install -g eslint` then installing `SublimeLinter` and `SublimeLinter-contrib-eslint` packages. For Vim, use [Syntastic](https://github.com/scrooloose/syntastic).

# eslint-config-earnest-es7
Earnest's ESLint config for ES7

## Usage

1. Install the following `"devDependencies"` in your repo:

    ```
    npm install eslint-config-earnest-es7@latest babel-core babel-cli babel-eslint babel-preset-es2015 babel-preset-stage-3 eslint eslint-plugin-babel --save-dev
    ```

2. Add a root level `.eslintrc` that references this package

    ```
    echo '{ "extends": "earnest" }' > .eslintrc
    ```

3. Add another `.eslintrc` to your `test` folder that supports mocha

    ```
    echo '{\n\s\s"extends": "earnest",\n\s\s"env": { "mocha": true }\n}' > test/.eslintrc
    ```

4. (Recommended) Add the following entries to your `package.json` for simplified CLI access to linting:

    ```json
    "scripts": {
      "lint": "./node_modules/.bin/eslint .",
      "lint-changed": "git diff --name-only --cached --relative | grep '\\.js$' | xargs ./node_modules/.bin/eslint"
    }
    ```

5. (Recommended) Setup your editor to support inline ESLint support. For Sublime Text, that means `npm install -g eslint` then installing `SublimeLinter` and `SublimeLinter-contrib-eslint` packages. For Vim, use [Syntastic](https://github.com/scrooloose/syntastic).

Move Install Instructions into Commands
Move Install Instructions into Commands
