npm.io
3.0.0 • Published 2 years agoCLI

@betsys-eslint/install

Licence
MIT
Version
3.0.0
Deps
2
Size
6 kB
Vulns
0
Weekly
0
Stars
7

Shows an illustrated sun in light color mode and a moon with stars in dark color mode.

@betsys-eslint/install

Installer for our ESLint configurations and plugins


Requirements

This cli tool requires Node.js v16 and later to work correctly.

Quick Start

CLI tool will install any @betsys-eslint package with its peer dependencies and execute the package's install schematics that alters your code automatically.

Installing ESLint configurations
npx @betsys-eslint/install config CONFIGURATION_NAME
# Note: Use CONFIGURATION_NAME without "eslint-config" prefix

# Example
npx @betsys-eslint/install config typescript
Installing ESLint plugins
npx @betsys-eslint/install plugin PLUGIN_NAME
# Note: Use PLUGIN_NAME without "eslint-plugin" prefix

# Example
npx @betsys-eslint/install plugin angular-template-spacing
Command details
npx @betsys-eslint/install TYPE NAME INSTALL_DIR

Parameters:

  • TYPE (required)
    • either config or plugin
  • NAME (required)
    • when TYPE is config, name of the config package without @betsys-eslint/eslint-config- prefix
    • when TYPE is plugin, name of the plugin package without @betsys-eslint/eslint-plugin- prefix
  • INSTALL_DIR (optional)
    • path to directory with package.json file (relative or absolute)
    • defaults to current directory

Keywords