@reflektor/eslint-config-react

ESLint configuration for React projects at Reflektor Digital.


Keywords
reflektor, reflektor digital, eslint, eslint config, nextjs, react, best practices
License
MIT
Install
npm install @reflektor/eslint-config-react@1.0.2-alpha

Documentation

eslint-config-react

ESLint configuration for React projects at Reflektor Digital.

What's inside this config?

Installation

yarn add @reflektor/eslint-config-react -D

ESLint only exports the configuration from this package and not the dependencies. Hence, in order to use this config, we'll also need to install the dependencies separately.

yarn add eslint eslint-import-resolver-alias eslint-plugin-import eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-jsx-a11y -D

Usage

Once the package and dependencies are installed, we can apply this ESLint config into our project.

// .eslintrc.js

module.exports = {
  // ...
  extends : [
    // ...
    '@reflektor/react'
  ]
};

Guidelines

License

MIT License