Custom eslint rules to help detect monitoring issues.
Use npm or a compatibility tool to install.
$ npm install --save-dev eslint eslint-plugin-monitolint
- Node.js v8.10.0 or newer versions.
- ESLint v5.16.0 or newer versions.
Write your config file such as .eslintrc.yml
.
plugins:
- monitolint
rules:
monitolint/no-hollow-catch: error
See also Configuring ESLint.
monitolint/recommended
... enables the recommended rules.
This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.
npm test
runs tests.npm run update
updates the package version. And it updatessrc/configs/recommended.ts
,lib/index.ts
, andREADME.md
's rule table. See also npm version CLI command.npm run add-rule <RULE_ID>
creates three files to add a new rule.