@adalo/eslint-plugin-axios
Rules for working safely with axios
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install @adalo/eslint-plugin-axios
:
npm install @adalo/eslint-plugin-axios --save-dev
Usage
Add axios
to the plugins section of your .eslintrc
configuration file.
{
"plugins": ["@adalo/eslint-plugin-axios"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@adalo/axios/no-defaults": 2
}
}
Supported Rules
Key:
Name | Description | |
---|---|---|
@adalo/axios/no-defaults |
Disallows use of axios.defaults
|