@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
orplugin
- either
- NAME (required)
- when
TYPE
isconfig
, name of the config package without@betsys-eslint/eslint-config-
prefix - when
TYPE
isplugin
, name of the plugin package without@betsys-eslint/eslint-plugin-
prefix
- when
- INSTALL_DIR (optional)
- path to directory with
package.json
file (relative or absolute) - defaults to current directory
- path to directory with