Skip to content

Commit

Permalink
fix: confine linting to directory where eslint config file is
Browse files Browse the repository at this point in the history
This is ensures only JavaScript files in the directory that the eslint config file is are linted
  • Loading branch information
CallumNZ committed Jan 16, 2025
1 parent 220946d commit 0c7d17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/reusable-eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ jobs:
PATHS: ${{ inputs.paths }}
run: |
for path in $PATHS; do
ESLINT_USE_FLAT_CONFIG=true $path/node_modules/.bin/eslint -c $path/eslint.config.mjs
ESLINT_USE_FLAT_CONFIG=true $path/node_modules/.bin/eslint -c $path/eslint.config.mjs $path
done

0 comments on commit 0c7d17b

Please sign in to comment.