@acolorbright/eslint-config-react

4.2.2 • Public • Published

eslint-config-react

This plugin provides ACB's .eslintrc as an extensible shared config, based on Airbnb's eslint-config-airbnb.

Installation

The plugin requires eslint, @babel/core, @babel/eslint-parser, and the following other packages:

  • @mizdra/eslint-plugin-layout-shift
  • eslint-plugin-extra-rules
  • eslint-plugin-import
  • eslint-plugin-jsx-a11y
  • eslint-plugin-jsx-control-statements
  • eslint-plugin-react
  • eslint-plugin-react-hooks
  • eslint-plugin-simple-import-sort

If you don't need React, see eslint-config. For React with TypeScript see eslint-config-ts-react.

$ npx install-peerdeps -D @acolorbright/eslint-config-react && npm install -DE @acolorbright/eslint-config-react@latest

Then add "extends": "@acolorbright/eslint-config-react" to your .eslintrc file.

Since install-peerdeps doesn't have a flag to pin the exact version of the installed peer dependencies it's advisable to pin the installed versions in package.json by hand.

Package Sidebar

Install

npm i @acolorbright/eslint-config-react

Weekly Downloads

10

Version

4.2.2

License

MIT

Unpacked Size

40.7 kB

Total Files

11

Last publish

Collaborators

  • acb-devs