1.2.0 • Published 4 months ago

@lucaseduardoio/eslint-config v1.2.0

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

ESLint config

Whats included?

  • standard;
  • react;
  • react-hooks;
  • jsx-a11y;
  • prettier;
  • eslint-plugin-import-helpers;

Setup

  1. Install the dependencies
npm i -D eslint @lucaseduardoio/eslint-config
  1. Create a .eslintrc.json file extending the config:
{
  "extends": "@lucaseduardoio/eslint-config/react"
  // "extends": "@lucaseduardoio/eslint-config/node"
}
  1. You can add/override any ESLint config by changing your own .eslintrc.json file. The example below will only add the self-closing tag rule and leave all the default rules untouched.
{
  "extends": "@lucaseduardoio/eslint-config/react",
  "rules": {
    "react/self-closing-comp": "error"
  }
}

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

Inspiration from the rocketseat repository