0.1.2 • Published 7 years ago
@ant-ai/eslint-plugin-ant-ai v0.1.2
eslint-plugin-ant-ai
eslint plugin for ant-ai
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install @ant-ai/eslint-plugin-ant-ai:
$ npm install @ant-ai/eslint-plugin-ant-ai --save-devNote: 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