0.2.0 • Published 6 years ago

@lyd/eslint-config-nextjs v0.2.0

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

@Lyd/eslint-config-nextjs

@Lyd 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 @lyd/eslint-config-nextjs

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": "@lyd/nextjs"
}

Example of extending the configuration

{
    "extends": "@lyd/nextjs",
    "rules": {
        "global-require": 0,
        "prefer-destructuring": 0
    }
}