@adalo/eslint-plugin-axios
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@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: 🔧 = fixable

Name Description 🔧
@adalo/axios/no-defaults Disallows use of axios.defaults

Package Sidebar

Install

npm i @adalo/eslint-plugin-axios

Weekly Downloads

102

Version

0.0.2

License

MIT

Unpacked Size

24.5 kB

Total Files

18

Last publish

Collaborators

  • protonapp