4.0.1 • Published 5 years ago

eslint-plugin-mpirik v4.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 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

5 years ago

4.0.0

6 years ago

3.0.0

7 years ago

2.3.0

8 years ago

2.2.0

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago