0.0.2 • Published 4 years ago
@adalo/eslint-plugin-axios v0.0.2
@adalo/eslint-plugin-axios
Rules for working safely with axios
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install @adalo/eslint-plugin-axios:
npm install @adalo/eslint-plugin-axios --save-devUsage
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 |