8.2.0 • Published 2 years ago

@eslint-kit/cli v8.2.0

Weekly downloads
19
License
MIT
Repository
github
Last release
2 years ago

The ESLint Kit CLI is a command-line interface tool that helps you to setup ESLint for your project.

It can:

  • Setup configs from eslint-config-kit automatically.
    (JSON / YAML eslint config files are supported)

  • Install and manage required dependencies.
    (NPM / Yarn)

  • Add aliases support for eslint-plugin-import.
    (both JS and TS parsers are supported)

  • Create recommended .prettierrc for kit/prettier config.

Usage

Using npx (recommended):

npx @eslint-kit/cli

Installing globally (it's good in rare cases):

npm i -g @eslint-kit/cli
eslint-kit

Common options

  • -W, --workspace <name> - use the specified yarn workspace as the working directory.

    Currently, it installs all dependencies into the workspace's package.json. If you want to keep eslint/prettier packages in the root package.json - do it manually.

Commands

Manage configs

Select everything you want using convenient dialogs. CLI will do everything for you.

$ npx @eslint-kit/cli

or

$ npx @eslint-kit/cli config

Accepts all common options.

Upgrade

Upgrade @eslint-kit configs to their latest versions.

$ npx @eslint-kit/cli upgrade

Accepts all common options.

Setup aliases

Just enter aliases in JSON format and CLI will take care of it.

$ npx @eslint-kit/cli alias

Accepts all common options.

Check

Check packages for compatibility with ESLint Kit. If some versions are not ok, CLI will offer you a way to fix it.

$ npx @eslint-kit/cli check

or

$ npx @eslint-kit/cli check-versions

Learn more about eslint-kit here.

Accepts all common options.

8.2.0

2 years ago

8.1.0

2 years ago

8.0.1

3 years ago

8.0.0

3 years ago

7.2.2

3 years ago

7.2.1

3 years ago

7.2.0

3 years ago

5.3.0

3 years ago

6.0.0

3 years ago

7.0.0

3 years ago

7.0.2

3 years ago

7.1.0

3 years ago

7.0.1

3 years ago

5.2.0

3 years ago

5.1.0

3 years ago

5.0.0

3 years ago

4.0.2

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.1.0

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

1.0.2

4 years ago

1.0.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago