Skip to content

jehy/eslint-plugin-ott

Repository files navigation

ESLint plugin OTT

Build Status dependencies Status devDependencies Status Coverage Status Known Vulnerabilities

Some OTT ESLint rules

Rules

  • no-log-without-message-name - force using log.e() calls with nice first arguments.
  • no-process-std - restrict using process.std funcs.

Prerequisites

Node.js (>=6.x).

Usage

  • If you don't have ESLint yet configured for your project follow these instructions.
  • Install eslint-plugin-ott using npm (or yarn) for you project:
npm install https://github.com/jehy/eslint-plugin-ott.git --save-dev # install for your project
  • Add eslint-plugin-ott to the plugins option of your .eslintrc:
{
  "plugins": ["ott"]
}
  • Enable some rules:
{
  "rules": {
    "ott/no-log-without-message-name": "error",
    "ott/no-process-std": "error"
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published