1.0.0-beta.1 • Published 8 months ago

@aak.lear/eslint-config-react v1.0.0-beta.1

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

@aak.lear/eslint-config-react

This package contains my ESLint rules configuration for React.

You should already have installed ESLint package to use this configuration.

Install

Install with CLI

Run following command in your project root and select the desired options

npx @aak.lear/eslint-config

Install manually

npm

npm i -D @aak.lear/eslint-config-react

yarn

yarn add -D @aak.lear/eslint-config-react

For the correct work of configuration you should also install peer dependencies.

Run this command:

npx install-peerdeps --dev @aak.lear/eslint-config-react
npm info @aak.lear/eslint-config-react peerDependencies

Then install all dependencies from list with this template:

npm

npm i -D <dependency>@<version>

yarn

yarn add -D <dependency>@<version>

Usage

Note: You can skip this configuration step if you chose CLI installation.

Use this extension in your eslint configuration file.

Example for .eslintrc.js:

module.exports = {
  extends: [
    '@aak-lear/react',
  ],
};