githubActions.configs.stylistic
Opt-in naming conventions for workflow names, job identifiers, and workflow and action input identifiers.
This preset targets .github/workflows/*.{yml,yaml} and **/action.{yml,yaml}. It uses Title Case for workflow names and kebab-case for job and input identifiers. Input casing is a repository preference; it is not enabled by recommended or actionMetadata.
import githubActions from "eslint-plugin-github-actions-2";
export default [
githubActions.configs.recommended,
githubActions.configs.actionMetadata,
githubActions.configs.stylistic,
];
Override github-actions/input-id-case after these presets to select another convention or ignore existing public input names. Input identifiers are report-only because renaming them can break external callers.
Included rulesโ
Fix legend:
- ๐ง = autofixable
- ๐ก = suggestions available
- โ = report only
| Rule | Fix |
|---|---|
R009 action-name-casing | ๐ง |
R116 input-id-case | โ |
R010 job-id-casing | โ |