@aak.lear/eslint-config

1.0.0-beta.9 • Public • Published

@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

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

Run this command:

npx install-peerdeps --dev @aak.lear/eslint-config

Or you can list all peer dependencies and install it manually:
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',
  ],
};

Package Sidebar

Install

npm i @aak.lear/eslint-config

Weekly Downloads

12

Version

1.0.0-beta.9

License

MIT

Unpacked Size

12 kB

Total Files

19

Last publish

Collaborators

  • aak.lear