0.0.2 • Published 2 years ago

@adalo/eslint-plugin-axios v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@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

NameDescription:wrench:
@adalo/axios/no-defaultsDisallows use of axios.defaults