Some OTT ESLint rules
no-log-without-message-name
- force usinglog.e()
calls with nice first arguments.no-process-std
- restrict usingprocess.std
funcs.
Node.js (>=6.x).
- If you don't have ESLint yet configured for your project follow these instructions.
- Install
eslint-plugin-ott
usingnpm
(oryarn
) for you project:
npm install https://github.com/jehy/eslint-plugin-ott.git --save-dev # install for your project
- Add
eslint-plugin-ott
to theplugins
option of your.eslintrc
:
{
"plugins": ["ott"]
}
- Enable some rules:
{
"rules": {
"ott/no-log-without-message-name": "error",
"ott/no-process-std": "error"
}
}