/** * `eslint-plugin-security` - ESLint plugin for Node Security. */ import type { ESLint, Linter, Rule } from 'eslint'; declare namespace plugin { /** * The name of every rule shipped by this plugin, without the * `security/` prefix. */ type RuleName = | 'detect-bidi-characters' | 'detect-buffer-noassert' | 'detect-child-process' | 'detect-disable-mustache-escape' | 'detect-eval-with-expression' | 'detect-invisible-characters' | 'detect-new-buffer' | 'detect-no-csrf-before-method-override' | 'detect-non-literal-fs-filename' | 'detect-non-literal-regexp' | 'detect-non-literal-require' | 'detect-object-injection' | 'detect-possible-timing-attacks' | 'detect-pseudoRandomBytes' | 'detect-unsafe-regex'; } /** * The plugin object, ready to be used as a `security` entry in the * `plugins` of an ESLint config. */ declare const plugin: Required> & { /** * Metadata of this plugin, taken from the `package.json` of the * `eslint-plugin-security` package. */ meta: Required>; /** * Every rule this plugin ships, keyed by * {@linkcode plugin.RuleName | RuleName}. */ rules: Record; /** * Default severity of every rule, kept for backwards compatibility with * legacy (eslintrc) tooling. */ rulesConfig: Record; /** * The shareable configs of this plugin. */ configs: { /** * Flat config, for `eslint.config.js`. * It turns every rule of this plugin on as a warning. */ readonly recommended: Pick; /** * Legacy (eslintrc) config, for `.eslintrc.*` files. * It enables the same rules as * {@linkcode plugin.configs.recommended | recommended}. */ readonly 'recommended-legacy': Pick; }; }; export = plugin;