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