@gunnarx2/eslint-config-eslint-react

4.0.3 • Public • Published

@gunnarx2/eslint-react

npm version npm downloads npm bundle size npm license lerna

Extendable ESLint configuration built on top of eslint-config-react-app.

Installation

yarn add @gunnarx2/eslint-config-eslint-react \
  @typescript-eslint/eslint-plugin@^4.0.0 \
  @typescript-eslint/parser@^4.0.0 \
  babel-eslint@^10.0.0 \
  eslint@^7.5.0 \
  eslint-config-airbnb@^18.2.0 \
  eslint-config-prettier@^6.14.0 \
  eslint-config-react-app@^6.0.0 \
  eslint-plugin-babel@^5.3.1 \
  eslint-plugin-cypress@^2.11.2 \
  eslint-plugin-flowtype@^5.2.0 \
  eslint-plugin-import@^2.22.0 \
  eslint-plugin-jsx-a11y@^6.3.1 \
  eslint-plugin-prettier@^3.1.4 \
  eslint-plugin-react@^7.21.5 \
  eslint-plugin-react-hooks@^4.2.0 -D

With Create React App

yarn add @gunnarx2/eslint-config-eslint-react \
  eslint-config-airbnb@^18.2.0 \
  eslint-config-prettier@^6.14.0 \
  eslint-plugin-babel@^5.3.1 \
  eslint-plugin-cypress@^2.11.2 \
  eslint-plugin-prettier@^3.1.4 -D

Usage

Extend @gunnarx2/eslint-react in the ESLint config. @gunnarx2/prettier is included in the package, so make sure to setup the Prettier config and install its peer dependencies.

module.exports = {
  extends: ['@gunnarx2/eslint-react']
};

Readme

Keywords

none

Package Sidebar

Install

npm i @gunnarx2/eslint-config-eslint-react

Weekly Downloads

3

Version

4.0.3

License

MIT

Unpacked Size

5.92 kB

Total Files

3

Last publish

Collaborators

  • gunnarx2