3.0.0 • Published 4 months ago

@betsys-eslint/install v3.0.0

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

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