eslint-plugin-mpirik
ESLint rules and configuration that extends airbnb's configuration
[2, 'ex']
catch-name: Enforce the name of the exception variable created in a catch block.
Allow multiple parameter names:
"mpirik/catch-name": 2 '^(ex|exception)'
2
mochajs-no-exclusive-tests: Prevents exclusive mochajs tests
2
no-callback-in-generator: Prevents callback usage inside of a generator function
2
promise-shorthand: Require promise shorthand where possible
Usage
npm install --save-dev eslint-plugin-mpirik eslint
- Add
plugins
section and specify eslint-plugin-mpirik as a plugin:
"plugins": "mpirik"
- Use
recommended
configuration for default rules or specify rules explicitly
"plugins": "mpirik" "extends": "plugin:mpirik/recommended"
or
"rules": "mpirik/catch-name": "error"
Useful links
I found these links useful while writing rules: