theodo / eslint-plugin-monitolint

custom eslint rules to help detect monitoring issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

custom eslint rules to help detect monitoring issues


Languages

Language:TypeScript 95.0%Language:JavaScript 4.5%Language:Shell 0.5%