Eslint plugin scrumble rules

Eslint plugin for custom rules used by Scrumble. Currently only import sorting is included

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @scrumble-nl/eslint-plugin-scrumble-rules:

npm i@scrumble-nl/eslint-plugin-scrumble-rules --save-dev

Usage

Add @scrumble-nl/scrumble-rules to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "@scrumble-nl/scrumble-rules"
    ]
}

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

{
    "rules": {
        "@scrumble-nl/scrumble-rules/sort-imports": "warn"
    }
}

Supported Rules

  • sort-imports