Skip to content

Commit 23bcf74

Browse files
authored
Merge pull request #119 from Lancear/master
Input to set the NODE_OPTIONS environment variable for eslint
2 parents ffd5502 + 4941557 commit 23bcf74

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ Optional. Flags and args of eslint command. Default: '.'
5454

5555
Optional. The directory from which to look for and run eslint. Default '.'
5656

57+
### `node_options`
58+
59+
Optional. The NODE_OPTIONS environment variable to use with eslint. Default is ''.
60+
5761
## Example usage
5862

5963
You also need to install [eslint](https://github.com/eslint/eslint).

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ inputs:
4545
description: 'Tool name to use for reviewdog reporter'
4646
required: false
4747
default: 'eslint'
48+
node_options:
49+
description: 'NODE_OPTIONS for running eslint'
50+
required: false
51+
default: ''
4852
runs:
4953
using: 'composite'
5054
steps:
@@ -63,6 +67,7 @@ runs:
6367
INPUT_ESLINT_FLAGS: ${{ inputs.eslint_flags }}
6468
INPUT_WORKDIR: ${{ inputs.workdir }}
6569
INPUT_TOOL_NAME: ${{ inputs.tool_name }}
70+
NODE_OPTIONS: ${{ inputs.node_options }}
6671
branding:
6772
icon: 'alert-octagon'
6873
color: 'blue'

0 commit comments

Comments
 (0)