Rocketseat / eslint-config-rocketseat

ESLint configuration used by Rocketseat

Home Page:https://www.npmjs.com/@rocketseat/eslint-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rocketseat 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 @rocketseat/eslint-config

Inside .eslintrc.json

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

React (without Next.js)

Install dependencies:

npm i -D eslint @rocketseat/eslint-config

Inside .eslintrc.json

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

Node.js

Install dependencies:

npm i -D eslint @rocketseat/eslint-config

Inside .eslintrc.json

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

About

ESLint configuration used by Rocketseat

https://www.npmjs.com/@rocketseat/eslint-config


Languages

Language:JavaScript 100.0%