1.2.3 • Published 12 months ago

@kleytonsolinho/eslint-config v1.2.3

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

📦 Kleyton Solinho ESLint config

Whats included this package?

  1. Standard config base;
  2. React plugin;
  3. React Hooks plugin;
  4. JSX a11y plugin;
  5. Prettier;

👨🏻‍💻 Setup

Install the dependencies

npm i eslint @kleytonsolinho/eslint-config -D

Create a .eslintrc.json file extending the config to react:

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

Or extending the config to node:

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

Create a .prettierrc.js file extending the config:

module.exports = require('@kleytonsolinho/eslint-config/prettier');

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