mrm-task-eslint

Mrm task that adds ESLint.

Supports JavaScript and TypeScript.

What it does

  • Creates .eslintrc.json
  • Adds an npm script to run ESLint before tests
  • Installs dependencies

Usage

npm install -g mrm mrm-task-eslint
mrm eslint

Options

See Mrm docs for more details.

eslintPreset (default: eslint:recommended)

ESLint preset name (not npm package name, e.g. airbnb).

eslintPeerDependencies (optional)

Additional dependencies to install (e.g. ['prettier', 'eslint-plugin-prettier']).

eslintObsoleteDependencies (optional)

Dependencies that should be removed (e.g. ['eslint-plugin-prettier']).

eslintRules (optional)

Additional rules (e.g. { 'no-undef': 0 }).