Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 2.16 KB

README.md

File metadata and controls

57 lines (42 loc) · 2.16 KB

eslint-plugin-teactn

Enforcing best practices for teactn

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-teactn:

$ npm install eslint-plugin-teactn --save-dev

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

Usage

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

{
    "plugins": [
        "teactn"
    ],
    "extends": [
        "plugin:teactn/recommended"
    ]
}

To configure individual rules:

{
    "rules": {
        "teactn/withGlobal-prefer-named-arguments": 2
    }
}

Supported Rules