0.1.2 • Published 5 years ago

@ant-ai/eslint-plugin-ant-ai v0.1.2

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

eslint-plugin-ant-ai

eslint plugin for ant-ai

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @ant-ai/eslint-plugin-ant-ai:

$ npm install @ant-ai/eslint-plugin-ant-ai --save-dev

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

Usage

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

{
    "plugins": [
        "ant-ai"
    ]
}

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

{
    "rules": {
        "ant-ai/strict-dispatch-function": 2,
        "ant-ai/no-dispatch-then": 2
    }
}

Supported Rules

  • strict-dispatch-function
  • no-dispatch-then