@potidev/eslint-config

2.0.1 • Public • Published

Potidev - 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 @potidev/eslint-config

Inside .eslintrc.json

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

After install, run to start on Next:

npm run lint

React (without Next.js)

Install dependencies:

npm i -D eslint @potidev/eslint-config

Inside .eslintrc.json

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

After install, run to start on Next:

npm run lint

Package Sidebar

Install

npm i @potidev/eslint-config

Weekly Downloads

3

Version

2.0.1

License

MIT

Unpacked Size

8.16 kB

Total Files

5

Last publish

Collaborators

  • potidev