1.0.0 • Published 2 years ago

@diogop_96/eslint-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Personal ESLint and Prettier config

Whats included?

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

Setup

  1. Install the dependencies
npm i -D eslint @diogop_96/eslint-config
  1. Create a .eslintrc.js file extending the config:
{
  "extends": "@diogop_96/eslint-config/react"
}
  1. Create a .prettierrc.js file extending the config:
module.exports = {
    ...require("@diogop_96/eslint-config/prettier"),
    // your overwrite
    printWidth: 140,
    tabWidth: 4
};