2.1.1 • Published 8 months ago

@bigdayco/eslint-config v2.1.1

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

BigDay ESLint config

Whats included?

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

Setup

⚠️ If you have used Prettier, please disable or uninstall it to avoid conflicts.

  1. Install the dependencies
npm i -D eslint @bigdayco/eslint-config
  1. Create a .eslintrc.json file extending the config:
{
  # React
  "extends": "@bigdayco/eslint-config/react"

  # Next.js
  "extends": [
    "@bigdayco/eslint-config/next", 
    "next/core-web-vitals"
  ]

  #Node.js
  "extends": "@bigdayco/eslint-config/node"
}

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

License

MIT