Skip to content

Paulomart/eslint-config

Repository files navigation

@paulomart/eslint-config

Sane eslint configs for TypeScript and friends.

Installation

npm install --save-dev @paulomart/eslint-config

Usage

TypeScript

Add the following to your package.json:

{
  (...)
  "eslintConfig": {
    "extends": "@paulomart/eslint-config/default"
  },
  (...)
}

React

Add the following to your package.json:

{
  (...)
  "eslintConfig": {
    "extends": "@paulomart/eslint-config/react"
  },
  (...)
}

Node

Add the following to your package.json:

{
  (...)
  "eslintConfig": {
    "extends": "@paulomart/eslint-config/node"
  },
  (...)
}

Next.js

Add the following to your package.json:

{
  (...)
  "eslintConfig": {
    "extends": "@paulomart/eslint-config/nextjs"
  },
  (...)
}