4.0.1 • Published 7 years ago

eslint-plugin-mpirik v4.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

eslint-plugin-mpirik

ESLint rules and configuration that extends airbnb's configuration

catch-name: [2, 'ex']

Enforce the name of the exception variable created in a catch block.

Allow multiple parameter names:

  "mpirik/catch-name": [2, '^(ex|exception)']

mochajs-no-exclusive-tests: 2

Prevents exclusive mochajs tests

no-callback-in-generator: 2

Prevents callback usage inside of a generator function

promise-shorthand: 2

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:

4.0.1

7 years ago

4.0.0

8 years ago

3.0.0

9 years ago

2.3.0

10 years ago

2.2.0

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.3.3

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago