/** * Copyright (c) 2025 Ofri Peretz * Licensed under the MIT License. Use of this source code is governed by the * MIT license that can be found in the LICENSE file. */ /** * ESLint Rule: no-self-signed-certs * Detects rejectUnauthorized: false in TLS options * CWE-295: Improper Certificate Validation * * @see https://cwe.mitre.org/data/definitions/295.html */ import type { TSESLint } from '@interlace/eslint-devkit'; type MessageIds = 'insecureTls' | 'enableValidation'; export interface Options { /** Allow in test/development files. Default: false */ allowInTests?: boolean; } type RuleOptions = [Options?]; export declare const noSelfSignedCerts: TSESLint.RuleModule & { name: string; }; export type { Options as NoSelfSignedCertsOptions };