2.0.1 • Published 10 months ago

@copastur/eslint-config v2.0.1

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

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.