Skip to main content

Secretlint bridge only

Enable only the Secretlint bridge rule for text-like files.

This is the smallest adoption surface. It runs upstream Secretlint through ESLint and leaves Secretlint config-authoring policy out of the preset.

Flat config exampleโ€‹

import secretlint from "eslint-plugin-secretlint";

export default [...secretlint.configs.secretlintOnly];

Legacy alias: secretlint.configs.text remains supported.

Best fitโ€‹

  • Repositories that only want secret-detection diagnostics in ESLint.
  • Teams migrating from a standalone secretlint CI step.
  • Projects that already manage Secretlint config conventions elsewhere.

What this preset includesโ€‹

  • secretlint/secretlint
  • Parser-neutral bridge wiring for files that already have an ESLint parser.
  • Raw text parser fallback for plain text file types.
  • Default ignores for common generated directories.

What this preset does not includeโ€‹

  • Secretlint config file naming checks.
  • Shape, duplicate, package-installed, or relative-path policy for Secretlint config files.

Rules in this presetโ€‹

This table is generated from runtime plugin metadata for secretlint.configs.secretlintOnly.

Fix legend:

  • ๐Ÿ”ง = autofixable
  • โ€” = report only
RuleFixThis presetAlso enabled in
secretlintโ€”๐Ÿงช Enabled๐ŸŸก ๐ŸŸฃ
require-secretlint-config-file-naming-conventionโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
require-secretlint-rules-arrayโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
require-secretlint-rule-idโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-secretlint-duplicate-rulesโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-secretlint-empty-rule-idโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-secretlint-relative-rule-pathsโ€”โ€”๐ŸŸก ๐Ÿ”ง ๐ŸŸฃ
disallow-secretlint-unknown-rule-propertiesโ€”โ€”๐Ÿ”ง ๐ŸŸฃ
prefer-secretlint-allow-message-ids-arrayโ€”โ€”๐Ÿ”ง ๐ŸŸฃ
prefer-secretlint-nested-rules-arrayโ€”โ€”๐Ÿ”ง ๐ŸŸฃ
require-secretlint-rules-packages-installedโ€”โ€”๐Ÿ”ง ๐ŸŸฃ