forked from krizzu/eslint-check-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
30 lines (30 loc) · 842 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: 'Eslint check'
description: "GitHub action running eslint check in your project, annotating errors/warnings in PR."
author: "krizzu"
inputs:
ghToken:
description: 'GitHub token'
required: true
eslintFiles:
required: false
description: 'Relative path to files/directories to run lint on.'
default: '.'
eslintConfig:
required: false
description: 'Relative path to eslint config. Can either be ".js" config, ".eslintrc" or "package.json".'
default: '.eslintrc'
eslintExt:
required: false
description: 'File extension to run linting on.'
default: 'js, ts, jsx, tsx'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.ghToken }}
- ${{ inputs.eslintFiles }}
- ${{ inputs.eslintConfig }}
- ${{ inputs.eslintExt }}
branding:
icon: 'octagon'
color: 'green'