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