Skip to content

Commit

Permalink
Merge pull request #119 from Lancear/master
Browse files Browse the repository at this point in the history
Input to set the NODE_OPTIONS environment variable for eslint
  • Loading branch information
haya14busa authored Dec 28, 2021
2 parents ffd5502 + 4941557 commit 23bcf74
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ Optional. Flags and args of eslint command. Default: '.'

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

### `node_options`

Optional. The NODE_OPTIONS environment variable to use with eslint. Default is ''.

## Example usage

You also need to install [eslint](https://github.com/eslint/eslint).
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ inputs:
description: 'Tool name to use for reviewdog reporter'
required: false
default: 'eslint'
node_options:
description: 'NODE_OPTIONS for running eslint'
required: false
default: ''
runs:
using: 'composite'
steps:
Expand All @@ -63,6 +67,7 @@ runs:
INPUT_ESLINT_FLAGS: ${{ inputs.eslint_flags }}
INPUT_WORKDIR: ${{ inputs.workdir }}
INPUT_TOOL_NAME: ${{ inputs.tool_name }}
NODE_OPTIONS: ${{ inputs.node_options }}
branding:
icon: 'alert-octagon'
color: 'blue'

0 comments on commit 23bcf74

Please sign in to comment.