Skip to main content

Configuration

Enable only the Secretlint config-authoring rules.

Use this preset when secret scanning is handled elsewhere, but ESLint should still keep .secretlintrc.* and Secretlint config modules predictable and reviewable.

Flat config exampleโ€‹

import secretlint from "eslint-plugin-secretlint";

export default [secretlint.configs.configuration];

Legacy alias: secretlint.configs.configs remains supported.

Best fitโ€‹

  • Shared config repositories that publish Secretlint defaults.
  • Monorepos with centralized secret scanning but local Secretlint config files.
  • Teams that want config hygiene without running the Secretlint bridge through ESLint.

What this preset includesโ€‹

  • Secretlint config filename checks.
  • Required rules array and rule-id checks.
  • Duplicate-rule, unknown-property, relative-path, package-installed, and array-shape policy.

What this preset does not includeโ€‹

  • The secretlint/secretlint bridge rule.
  • Secret-detection diagnostics from upstream Secretlint.

Rules in this presetโ€‹

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

Fix legend:

  • ๐Ÿ”ง = autofixable
  • โ€” = report only
RuleFixThis presetAlso enabled in
secretlintโ€”โ€”๐ŸŸก ๐Ÿงช ๐ŸŸฃ
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โ€”๐Ÿ”ง Enabled๐ŸŸฃ
prefer-secretlint-allow-message-ids-arrayโ€”๐Ÿ”ง Enabled๐ŸŸฃ
prefer-secretlint-nested-rules-arrayโ€”๐Ÿ”ง Enabled๐ŸŸฃ
require-secretlint-rules-packages-installedโ€”๐Ÿ”ง Enabled๐ŸŸฃ