@adalo/eslint-plugin-axios
v0.0.2
Published
Rules for using axios
Downloads
67
Readme
@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: :wrench: = fixable
| Name | Description | :wrench: |
| -------------------------- | --------------------------------- | -------- |
| @adalo/axios/no-defaults
| Disallows use of axios.defaults
| |