Closed clementAC closed 2 weeks ago
had the same problem. My workaround was to just use another action It's a bad workaround, I know.
name: Linter and Formatting
on:
push:
branches:
- main
pull_request: {}
jobs:
run-linters:
name: Run Prettier and Autofix on CSS files
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16
- name: Install Node.js dependencies
run: |
npm install prettier
npm install stylelint
npm install stylelint-config-standard
- name: Run Prettier on CSS files
uses: wearerequired/lint-action@v2
with:
github_token: "${{ secrets.github_token }}"
eslint: false
prettier: true
auto_fix: true
prettier_args: --ignore-path .prettierignore
- name: Run stylelint with reviewdog
uses: reviewdog/action-stylelint@v1.22.1
with:
reporter: github-pr-review
stylelint_input: "**/*.css"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi,
Using stylelint in the action with the last version of stylelint lead to error in parsing the command output. What seems strange it's when runing localy the output looks like the same =/.
Here is the error:
Error parsing stylelint JSON output: Unexpected end of JSON input. Output: ""