0.0.15 • Published 6 months ago

eslint-plugin-github-action v0.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

eslint-plugin-github-action

CI NPM VERSION NPM DOWNLOADS CODECOV LICENSE

Rules for consistent, readable and valid GitHub action files.

Install

npm install eslint-plugin-github-action -D
yarn add eslint-plugin-github-action -D
pnpm add eslint-plugin-github-action -D

Usage

Config in ESLint config files:

import { defineConfig } from 'eslint/config'
import pluginGitHubAction from 'eslint-plugin-github-action'

export default defineConfig([
  ...pluginGitHubAction.configs.recommended,
  // Other configs...
])

:apple: For advanced usaged, please check Advanced Usage

Rules

šŸ’¼ Configurations enabled in.\ āœ… Set in the recommended preset.\ šŸ”§ Automatically fixable by the --fix CLI option.\ šŸ’” Manually fixable by editor suggestions.

NameDescriptionšŸ’¼šŸ”§šŸ’”
action-name-casingEnforce naming convention to action name.šŸ”§
job-id-casingEnforce naming convention to job id.
max-jobs-per-actionEnforce maximum jobs per action file.
no-external-jobDisallow using external job.
no-invalid-keyDisallow using invalid key.āœ…
no-top-level-envDisallow using top level env.
no-top-level-permissionsDisallow using top level permissions.
prefer-fail-fastDisallow setting fail-fast to false.
prefer-file-extensionEnforce action file extension.āœ…
prefer-step-uses-styleEnforce the style of job step uses.
require-action-nameRequire a string action name.āœ…
require-action-run-nameRequire a string action run-name.
require-job-nameRequire a string job name.
require-job-step-nameRequire a string job step name.

Links

License

MIT License Ā© 2024-PRESENT ntnyq

0.0.15

6 months ago

0.0.14

7 months ago

0.0.13

8 months ago

0.0.10

9 months ago

0.0.11

9 months ago

0.0.12

9 months ago

0.0.9

9 months ago

0.0.8

10 months ago

0.0.5

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.1

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.4

10 months ago

0.0.0

10 months ago