6.8.8 • Published 9 months ago

@earnest/eslint-config v6.8.8

Weekly downloads
3,333
License
MIT
Repository
github
Last release
9 months ago

eslint-config-earnest

Shareable ESLint configuration for the Earnest JavaScript style guide.

If you are looking for an ES7 version, look here.

Usage

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

    npm i --save-dev @earnest/eslint-config@latest

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

    echo '{ "extends": "@earnest/eslint-config" }' > .eslintrc
  3. Add another .eslintrc to your test folder that supports mocha

    npm install eslint-plugin-mocha --save-dev
    echo '{ "extends": "@earnest/eslint-config/mocha" }' > test/.eslintrc
  4. (Recommended) Add the following entries to your package.json for simplified CLI access to linting:

    "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.

6.8.8

9 months ago

3.5.0

2 years ago

3.4.0

4 years ago

3.3.0

6 years ago

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

2.2.0

8 years ago

3.0.5

9 years ago

3.0.4

9 years ago

3.0.3

9 years ago

3.0.2

9 years ago

3.0.1

9 years ago

3.0.0

9 years ago

2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago