mrm-task-eslint

4.1.22 • Public • Published

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

npx mrm eslint

Options

See Mrm docs for more details.

eslintPreset (default: eslint:recommended)

ESLint preset name (e.g. airbnb or eslint-config-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 }).

Changelog

The changelog can be found in CHANGELOG.md.

Contributing

Everyone is welcome to contribute. Please take a moment to review the contributing guidelines.

Authors and license

Artem Sapegin and contributors.

MIT License, see the included License.md file.

Package Sidebar

Install

npm i mrm-task-eslint

Weekly Downloads

1,634

Version

4.1.22

License

MIT

Unpacked Size

7.76 kB

Total Files

4

Last publish

Collaborators

  • sapegin