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.
Related preset docsโ
Rules in this presetโ
This table is generated from runtime plugin metadata for secretlint.configs.recommended.
Fix legend:
๐ง= autofixableโ= report only
| Rule | Fix | This preset | Also 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 | โ | โ | ๐ง ๐ฃ |