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
rulesarray and rule-id checks. - Duplicate-rule, unknown-property, relative-path, package-installed, and array-shape policy.
What this preset does not includeโ
- The
secretlint/secretlintbridge rule. - Secret-detection diagnostics from upstream Secretlint.
Related preset docsโ
Rules in this presetโ
This table is generated from runtime plugin metadata for secretlint.configs.configuration.
Fix legend:
๐ง= autofixableโ= report only
| Rule | Fix | This preset | Also 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 | ๐ฃ |