eslint-plugin-callback-function

This rule enforces consistent placement of callback functions.

Usage no npm install needed!

<script type="module">
  import eslintPluginCallbackFunction from 'https://cdn.skypack.dev/eslint-plugin-callback-function';
</script>

README

eslint-plugin-callback-function

Travis Status Shippable Status

This currently have only one rule which enforces consistent placement of callback functions. rule-on-newline-code

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-callback-function:

$ npm install eslint-plugin-callback-function --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-callback-function globally.

Usage

Add callback-function to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "callback-function"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "callback-function/rule-name": 2
    }
}

Supported Rules