npm.io
2.0.1 • Published 3 years ago

@copastur/eslint-config

Licence
MIT
Version
2.0.1
Deps
13
Size
4 kB
Vulns
0
Weekly
0

ESLint

Whats included?

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

Setup

React (with Next.js)

If you are using Nextjs, follow the commands to install the Eslint package

  1. Install the dependencies
npm i -D eslint @copastur/eslint-config
  1. Create a .eslintrc.json file extending the config:
{
  "extends": [
    "@copastur/eslint-config/next", 
    "next/core-web-vitals"
  ]
}

React Vite (without Next.js)

If you are using Vite follow the commands to install the Eslint package

  1. Install the dependencies
npm i -D eslint @copastur/eslint-config
  1. Create a .eslintrc.json file extending the config:
{
  "extends": [
    "@copastur/eslint-config/react"
  ]
}

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