Skip to main content

Recommended

Enable the Secretlint bridge plus the common Secretlint config-authoring checks.

This is the default rollout path for most repositories. It surfaces secret findings in ESLint while enforcing low-noise config structure rules.

Flat config exampleโ€‹

import secretlint from "eslint-plugin-secretlint";

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

Best fitโ€‹

  • Application and package repositories that want one ESLint command to cover content scanning and Secretlint config files.
  • Teams adopting Secretlint in editors and CI at the same time.
  • Repositories that want config hygiene without enabling every stricter policy immediately.

What this preset includesโ€‹

  • secretlint/secretlint
  • High-signal Secretlint config rules for required rule ids, rules arrays, duplicate entries, relative paths, file naming, and empty rule ids.

What this preset does not includeโ€‹

  • More opinionated config cleanup from configuration, such as nested array preferences, package-installed checks, and unknown rule property checks.
  • The full policy surface from all.

Rules in this presetโ€‹

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

Fix legend:

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