eslint-plugin

@masknet/prefer-fetch

Enforce fetch

Rule Details

:x: Incorrect

jQuery(element).load()
request()
axios.get()
new XMLHttpRequest()

:white_check_mark: Correct

const response = await fetch(url, options)

Attributes