2.1.1 • Published 3 months ago

@rafaeld3v/eslint-config v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

rafaeld3v

ESLint config

Whats included?

  • Standard config base;
  • React plugin;
  • React Hooks plugin;
  • JSX a11y plugin;
  • Prettier;

Setup

React (with Next.js)

Install dependencies:

npm i -D eslint @rafaeld3v/eslint-config

Inside .eslintrc.json

{
  "extends": [
    "@rafaeld3v/eslint-config/next", 
    "next/core-web-vitals"
  ]
}

React (without Next.js)

Install dependencies:

npm i -D eslint @rafaeld3v/eslint-config

Inside .eslintrc.json

{
  "extends": "@rafaeld3v/eslint-config/react"
}

Node.js

Install dependencies:

npm i -D eslint @rafaeld3v/eslint-config

Inside .eslintrc.json

{
  "extends": "@rafaeld3v/eslint-config/node"
}

You can also use a .eslintrc.js instead of JSON if you prefer.