Skip to content

Commit

Permalink
Fixed eslint-bin-path is used in place of targets (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
CatChen authored Aug 5, 2022
1 parent 50c5420 commit 5bd6666
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ jobs:
- uses: ./
env:
DEBUG: "eslint:cli-engine"
with:
targets: "src"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Install dependencies
run: yarn install # or npm ci if you use npm and have the package-lock.json file

- uses: CatChen/[email protected].0
- uses: CatChen/[email protected].1
with:
request-changes: true # optional
fail-check: false # optional
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-suggestion-action",
"version": "1.10.3-alpha.2",
"version": "2.0.1",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function getESLintOutput(
mock: MockConfig | undefined,
eslintBinPath: string
) {
const targets = mock === undefined ? getInput("eslint-bin-path") : ".";
const targets = mock === undefined ? getInput("targets") : ".";
let stdout = "";
try {
await exec(eslintBinPath, [targets, "--format", "json"], {
Expand Down

0 comments on commit 5bd6666

Please sign in to comment.