Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.14 KB

README.md

File metadata and controls

47 lines (29 loc) · 1.14 KB

monitolint

Custom eslint rules to help detect monitoring issues.

Installation

Use npm or a compatibility tool to install.

$ npm install --save-dev eslint eslint-plugin-monitolint

Requirements

  • Node.js v8.10.0 or newer versions.
  • ESLint v5.16.0 or newer versions.

Usage

Write your config file such as .eslintrc.yml.

plugins:
  - monitolint
rules:
  monitolint/no-hollow-catch: error

See also Configuring ESLint.

Configs

  • monitolint/recommended ... enables the recommended rules.

Rules

Semantic Versioning Policy

This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.

Development Tools

  • npm test runs tests.
  • npm run update updates the package version. And it updates src/configs/recommended.ts, lib/index.ts, and README.md's rule table. See also npm version CLI command.
  • npm run add-rule <RULE_ID> creates three files to add a new rule.