1.0.2 • Published 3 years ago

@nataliafonseca/eslint-config v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

ESLint config

Whats included?

  • React plugin;
  • React Hooks plugin;
  • JSX a11y plugin;
  • Prettier;

Setup

  1. Install the dependencies
yarn add -D eslint @nataliafonseca/eslint-config
npm i -D eslint @nataliafonseca/eslint-config
  1. Create a .eslintrc.json file extending the config:
{
  "extends": "@nataliafonseca/eslint-config/react"
}
  1. Create a .prettierrc.json file with the config:
{
  "printWidth": 100,
  "singleQuote": true,
  "trailingComma": "all",
  "endOfLine": "auto"
}