/** * 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-cryptojs * Warns on usage of deprecated crypto-js library * CWE-1104: Use of Unmaintained Third Party Components * * crypto-js is not maintained since 2022 and recommends using native crypto * @see https://www.npmjs.com/package/crypto-js */ import type { TSESLint } from '@interlace/eslint-devkit'; type MessageIds = 'deprecatedCryptojs' | 'useNativeCrypto' | 'useWebCrypto'; export interface Options { /** Severity level. Default: 'warn' */ severity?: 'error' | 'warn'; } type RuleOptions = [Options?]; export declare const noCryptojs: TSESLint.RuleModule & { name: string; }; export type { Options as NoCryptojsOptions };