1.0.0-beta.9 • Published 8 months ago

@aak.lear/eslint-config v1.0.0-beta.9

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

@aak.lear/eslint-setup

Install

CLI

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

npx @aak.lear/eslint-config

Manually

npm

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

yarn

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

Run this command:

npx install-peerdeps --dev @aak.lear/eslint-config
npm info @aak.lear/eslint-config 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',
  ],
};

You can also use separate parts of config. But note that you should also install peer dependencies of preferred packages.

Example for .eslintrc.js:

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