Skip to content

korenskoy/eslint-plugin-teactn

 
 

Repository files navigation

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

Packages

No packages published

Languages

  • JavaScript 100.0%