@cloudfour/eslint-config

1.0.0 • Public • Published

@cloudfour/eslint-config

This is our ESLint configuration.

Installation

npm install --save-dev @cloudfour/eslint-config eslint prettier

You will also have to install some plugins that this depends on, because of a limitation of ESLint

npm install --save-dev eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard eslint-plugin-unicorn

Usage

Add this to your package.json:

  "scripts": {
    "check-lint": "prettier --list-different '**/*.js' && eslint '**/*.js'",
    "lint": "prettier --write '**/*.js' && eslint --fix '**/*.js'"
  },
  "eslintConfig": {
    "extends": "@cloudfour/eslint-config"
  },
  "prettier": {
    "singleQuote": true
  }

For CI

npm run check-lint

Locally

(this will automatically fix many linting issues)

npm run lint

/@cloudfour/eslint-config/

    Package Sidebar

    Install

    npm i @cloudfour/eslint-config

    Weekly Downloads

    18

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.51 kB

    Total Files

    5

    Last publish

    Collaborators

    • cloudfour-user
    • gerardo-rodriguez
    • calebeby
    • spaceninja
    • cloudfour-paul
    • tylersticka