{"id":16350,"library":"eslint-plugin-no-http","title":"ESLint Plugin: No HTTP Links","description":"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.","status":"maintenance","version":"0.0.3","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","eslint","eslintplugin","eslint-plugin"],"install":[{"cmd":"npm install eslint-plugin-no-http","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-no-http","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-no-http","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"This is an ESLint plugin and requires ESLint as a peer dependency to function.","package":"eslint","optional":false}],"imports":[{"note":"ESLint plugins are configured in `.eslintrc` files, not directly imported into application code.","wrong":"import 'eslint-plugin-no-http'","symbol":"plugins","correct":"{ \"plugins\": [\"no-http\"] }"},{"note":"Rules must be prefixed with the plugin name `no-http/` when configured in `.eslintrc`.","wrong":"\"no-http\": \"error\"","symbol":"rules","correct":"{ \"rules\": { \"no-http/no-http\": \"error\" } }"}],"quickstart":{"code":"{\n  \"env\": {\n    \"browser\": true,\n    \"node\": true,\n    \"es2021\": true\n  },\n  \"extends\": [\n    \"eslint:recommended\"\n  ],\n  \"parserOptions\": {\n    \"ecmaVersion\": \"latest\",\n    \"sourceType\": \"module\"\n  },\n  \"plugins\": [\n    \"no-http\"\n  ],\n  \"rules\": {\n    \"no-http/no-http\": \"warn\"\n  }\n}","lang":"json","description":"This ESLint configuration enables the `no-http` plugin and sets the `no-http/no-http` rule to a warning, flagging any insecure HTTP links."},"warnings":[{"fix":"Review the plugin's source code and issues for known limitations or contribute to its development.","message":"This plugin is in a very early development stage (v0.0.3). While functional, it might not cover all edge cases or have extensive community support. Users should test thoroughly.","severity":"gotcha","affected_versions":"<1.0.0"},{"fix":"Run `npm install eslint --save-dev` or `yarn add eslint --dev` to install ESLint.","message":"Ensure ESLint is installed as a `devDependency` in your project. This plugin cannot function without a compatible ESLint installation.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-04-22T00:00:00.000Z","next_check":"2026-07-21T00:00:00.000Z","problems":[{"fix":"Verify the `.eslintrc` file (e.g., `.eslintrc.json`, `.eslintrc.js`) exists in the project root or specified path, and its syntax is correct.","cause":"ESLint is unable to find or parse the configuration file, possibly due to a syntax error or incorrect path.","error":"ESLint: Cannot read config file: .eslintrc.js"},{"fix":"Run `npm install eslint-plugin-no-http --save-dev` or `yarn add eslint-plugin-no-http --dev` to install the plugin.","cause":"The `eslint-plugin-no-http` package has not been installed or is not accessible in the project's `node_modules`.","error":"ESLint: Failed to load plugin 'no-http'. The plugin 'eslint-plugin-no-http' was not found."},{"fix":"Ensure `\"no-http\"` is in the `plugins` array and `\"no-http/no-http\"` is correctly spelled and configured under the `rules` section.","cause":"The `no-http` plugin is listed in the `plugins` array, but the specific rule `no-http/no-http` is not correctly referenced or the plugin itself failed to load its rules.","error":"ESLint: Definition for rule 'no-http/no-http' was not found."}],"ecosystem":"npm"}