reviewdog / action-stylelint

Run stylelint with reviewdog
https://github.com/marketplace?type=actions&query=reviewdog
MIT License
47 stars 25 forks source link

Ancient lockfile -> ENOENT -> stylelint not found #75

Closed pbrisbin closed 2 years ago

pbrisbin commented 2 years ago

Trying to get setup with a basic configuration and the Action fails with:

Is this an issue on my end?

Our config:

name: Stylelint

on:
  pull_request:

jobs:
  stylelint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: reviewdog/action-stylelint@v1
        with:
          level: warning
          fail_on_error: true
          stylelint_input: "**/*.scss"
          stylelint_config: frontend/.stylelintrc
shogo82148 commented 2 years ago

I looks that the action can't find package.json. Do you have package.json? What version of Node.js do you use?

pbrisbin commented 2 years ago

Oh, I see. This is a likely an issue of me not being in the right directory of our monorepository.

We actually just added a problem matcher and are getting stylelint annotations that way without a dedicated action, so I don't think we'll use this.

Sorry for the noise!