ESLint Plugin: No HTTP Links

0.0.3 · maintenance · verified Wed Apr 22

The `eslint-plugin-no-http` package provides an ESLint rule specifically designed to prevent the use of insecure `http://` links in source code, enforcing the adoption of `https://` for better security and best practices. Its current stable version is `0.0.3`. Given the very low version number, it likely operates on a slow release cadence, receiving updates primarily for critical bug fixes or compatibility with newer ESLint versions rather than frequent feature additions. This plugin differentiates itself by its singular, focused purpose: identifying and flagging all instances of `http://` within strings, comments, or other relevant code contexts. It offers a straightforward, lightweight solution for teams looking to enforce HTTPS by default without integrating a broader, more complex set of security linting rules.

Common errors

Warnings

Install

Imports

Quickstart

This ESLint configuration enables the `no-http` plugin and sets the `no-http/no-http` rule to a warning, flagging any insecure HTTP links.

{
  "env": {
    "browser": true,
    "node": true,
    "es2021": true
  },
  "extends": [
    "eslint:recommended"
  ],
  "parserOptions": {
    "ecmaVersion": "latest",
    "sourceType": "module"
  },
  "plugins": [
    "no-http"
  ],
  "rules": {
    "no-http/no-http": "warn"
  }
}

view raw JSON →