require-support-file
Require SUPPORT.md for support and help channels.
Targeted pattern scopeâ
This rule checks the repository root for SUPPORT.md.
What this rule reportsâ
This rule reports repositories that do not document where users should ask questions or request help.
Why this rule existsâ
Support requests go sideways fast when users have no clear channel for help.
A SUPPORT.md file reduces noise in issue trackers by directing people to the
right place for:
- usage questions
- support boundaries
- escalation paths
- community chat or discussion links
â Incorrectâ
// Repository files
// .
// âââ README.md
// âââ SECURITY.md
// âââ package.json
//
// Missing: SUPPORT.md
â Correctâ
// Repository files
// .
// âââ README.md
// âââ SECURITY.md
// âââ SUPPORT.md
// âââ package.json
ESLint flat config exampleâ
import repoPlugin from "eslint-plugin-repo";
export default [
repoPlugin.configs.recommended,
{
plugins: { "repo-compliance": repoPlugin },
rules: {
"repo-compliance/require-support-file": "error",
},
},
];
When not to use itâ
Disable this rule only if the repository intentionally does not offer support or the support channel is already mandated by a broader organization portal.
Rule catalog ID: R006