An ESLint plugin that enforces explicit fetch() options to prevent insecure default behavior. Version 0.0.5 is the latest, with infrequent releases. It focuses on HTTP fetch security, offering rules like no-fetch-credentials and no-fetch-method to catch missing credentials or method options. Unlike general security linters, it specifically targets fetch() calls.
npm install eslint-plugin-fetch-optionsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure ESLint to enforce fetch options using the plugin rules.
Install ESLint: npm install eslint --save-dev
Use 'fetch-options/no-fetch-credentials' instead of 'no-fetch-credentials'
Use additional linters for axios, XMLHttpRequest, etc.
npm install eslint-plugin-fetch-options --save-dev
Change to "fetch-options/no-fetch-credentials" in .eslintrc