Skip to content

Minozzzi/eslint-config

Repository files navigation

ESLint config

Whats included?

  • React plugin;
  • React Hooks plugin;
  • Prettier;
  • JSX a11y plugin;
  • Import plugin;
  • @Typescript-eslint plugin;
  • And more!!

And amazing eslint rules

Setup

1. Install the dependencies

npm i -D eslint @minozzzi/eslint-config

or if you use yarn

yarn add -D eslint @minozzzi/eslint-config

or if you use pnpm

pnpm i -D eslint @minozzzi/eslint-config

2. Create a .eslintrc.json file extending the config

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

OR

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

OR

{
  "extends": "@minozzzi/eslint-config/next"
}

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