1.0.0 • Published 3 years ago

@scitotec/eslint-plugin-rules v1.0.0

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

@scitotec/eslint-plugin-rules

A plugin providing custom ESLint rules made by Scitotec GmbH.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @scitotec/eslint-plugin-rules:

$ npm install @scitotec/eslint-plugin-rules --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install @scitotec/eslint-plugin-rules globally.

Usage

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

{
    "plugins": [
        "@scitotec/rules"
    ]
}

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

{
    "rules": {
        "@scitotec/rules/split-imports": [ "error" ]
    }
}

Supported Rules

  • split-imports: Require an independent import statement per module.