An ESLint plugin that lints JavaScript code embedded in GitHub Actions workflow files (`.yml`/`.yaml`). Version 2.0.0 supports ESLint 8 and Node 12+; Node 10, 13, 15 and ESLint 6/7 are dropped. The plugin provides a processor that extracts JS from literal blocks (e.g., `script:` in `actions/github-script`) and lint them with standard ESLint rules. Recommended config `plugin:actions/recommended` enables the processor automatically. Unlike generic YAML linting tools, it gives full ESLint support for inline JS with virtual filenames for granular rule overrides. Experimental auto-fixing is available.
npm install eslint-plugin-actionsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Enable the plugin via the recommended config and ensure .github directory is not ignored.
Upgrade to Node >=12.22.0 and ESLint >=8.0.0.
Use ESLint 8+.
Avoid --fix in production; manually check diffs.
Use `|` for script content in workflows.
Set indent rule option: ['error', 2, { outerIIFEBody: 0 }].Run `npm install eslint-plugin-actions --save-dev`.
Add outerIIFEBody: 0 to the indent rule options.