{"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,"search_vec":"'0.0.3':44 'addit':76 'adopt':31 'best':37 'better':34 'broader':117 'bug':64 'cadenc':58 'code':28,98 'comment':94 'compat':67 'complex':119 'context':99 'critic':63 'current':40 'default':113 'design':18 'differenti':79 'enforc':29,110 'eslint':1,8,15,70,126,129 'eslint-plugin':128 'eslint-plugin-no-http':7 'eslintplugin':127 'featur':75 'fix':65 'flag':88 'focus':84 'frequent':74 'given':45 'http':4,11 'https':111 'identifi':86 'insecur':24 'instanc':90 'integr':115 'javascript':125 'lightweight':104 'like':52 'link':5,25 'lint':123 'look':108 'low':48 'newer':69 'number':50 'offer':101 'oper':53 'packag':12 'plugin':2,9,78,130 'practic':38 'prevent':20 'primarili':61 'provid':13 'purpos':85 'rather':72 'receiv':59 'releas':57 'relev':97 'rule':16,124 'secur':35,122 'set':120 'singular':83 'slow':56 'solut':105 'sourc':27 'specif':17 'stabl':41 'straightforward':103 'string':93 'team':107 'updat':60 'use':22 'version':42,49,71 'within':92 'without':114","created_at":"2026-04-22T04:49:56.110494+00:00","updated_at":"2026-04-22T04:49:56.110494+00:00","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","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"eslint","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-plugin-no-http","openapi_spec":null,"status_page":null,"smithery":null,"categories":["auth-security","testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-21","install_tag":null}}