0.2.3 • Published 6 years ago

@next-zero/eslint-config-nz v0.2.3

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

@next-zero/eslint-config-nz

Eslint config utilizing Airbnb config, Flow, Prettier and Jest support.

Plugins and configs used:

Additionally, it sets these environments:

{
  "env": {
    "browser": true,
    "es6": true,
    "node": true
  }
}

Installation

yarn add --dev eslint @next-zero/eslint-config-nz

Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like

Usage

Add to your eslint config (.eslintrc, or eslintConfig field in package.json):

{
    "extends": "@next-zero/nz"
}

Example of extending the configuration

{
    "extends": "@next-zero/nz",
    "rules": {
        "global-require": 0,
        "prefer-destructuring": 0
    }
}