This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 20
/
action.yml
72 lines (72 loc) · 2.82 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: 'ESLint Plus'
description: 'Runs ESLint against changed files with customization, issue commenting, and more'
author: 'Braden R. Napier'
branding:
icon: 'code'
color: 'red'
inputs:
github-token:
description: 'GitHub repository token for publishing inline lint annotations. Should be secrets.GITHUB_TOKEN.'
required: true
default: ${{ github.token }}
reportWarnings:
description: 'By setting this to "false", only errors will be annotated'
required: false
reportWarningsAsErrors:
description: 'Report eslint warnings as errors? Defaults to false'
required: false
reportIgnoredFiles:
description: 'Report any file paths which were ignored? Defaults to false'
required: false
reportSuggestions:
description: 'Report suggestions with the rules? Defaults to true'
required: false
issueSummary:
description: 'Should the bot provide a summary of the results as a comment? Defaults to true'
required: false
issueSummaryType:
description: 'Changes the PR comment to be "full" (as shown on actions page) or "compact", defaults to compact'
required: false
issueSummaryMethod:
description: 'When issueSummary is enabled, allows having the bot edit or refresh the comment on each new push'
required: false
issueSummaryOnlyOnEvent:
description: 'Should an issue comment only occur when there are warnings or errors?'
required: false
extensions:
description: 'Optionally provide a comma-separated list of extensions (checks js, jsx, ts, tsx by default)'
required: false
includeGlob:
description: 'Optionally provide a glob to include. Will include all if not provided'
required: false
ignoreGlob:
description: 'Optionally provide ignore pattern to use. Will also use eslintignore unless specified'
required: false
configFile:
description: 'A config file to use, defaults to the default config file at process.cwd()'
required: false
rulePaths:
description: 'Optional comma-separated list of rule paths to use'
required: false
errorOnUnmatchedPattern:
description: 'Throw error if unmatched pattern is seen? Defaults to false'
required: false
useEslintrc:
description: 'Use eslintrc? Defaults to true'
required: false
useEslintIgnore:
description: 'Set to false to not use eslintignore. Defaults to true'
required: false
fix:
description: 'Run with --fix? Defaults to false'
required: false
npmInstall:
description: 'Force run npm ci (or yarn) for you. If you do not use this option, be sure to install the project dependencies before running this action. By default it will run if a node_modules directory is not found or this is set to true'
required: false
default: 'false'
runs:
using: docker
image: Dockerfile
args:
- "${{ inputs.github-token }}"
- "${{ inputs.npmInstall }}"