pre-commit-stylelint icon indicating copy to clipboard operation
pre-commit-stylelint copied to clipboard

create a new release

Open christopherpickering opened this issue 4 years ago • 2 comments

Hey, do you mind creating a new release to point pre-commit to? The last release was 2017, so I leave the release blank in the config.. but hoping to avoid this warning in my pre-commit:

[WARNING] The 'rev' field of repo 'https://github.com/awebdeveloper/pre-commit-stylelint' appears to be a mutable reference (moving tag / branch).  Mutable references are never updated after first install and are not supported.  See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.  Hint: `pre-commit autoupdate` often fixes this.

thanks!

christopherpickering avatar Apr 28 '21 16:04 christopherpickering

although I suppose we can do this and use a recent commit sha... as the docs point out.

 - repo: https://github.com/awebdeveloper/pre-commit-stylelint
    rev: '8f63da4'
    hooks:
      - id: stylelint

christopherpickering avatar Apr 28 '21 16:04 christopherpickering

In case anyone needs this, I put together an alternative hook that automatically syncs stylelint releases: https://github.com/thibaudcolas/pre-commit-stylelint. So you can just write the stylelint version you’re after:

- repo: https://github.com/thibaudcolas/pre-commit-stylelint
  rev: v14.4.0
  hooks:
    - id: stylelint

Or with additional dependencies:

- repo: https://github.com/thibaudcolas/pre-commit-stylelint
  rev: v14.4.0
  hooks:
    - id: stylelint
      additional_dependencies:
        # stylelint itself needs to be here when using additional_dependencies.
        - [email protected]
        - [email protected]
        # Package names starting with `@` need to be quoted.
        - "@scope/[email protected]"

thibaudcolas avatar Jun 22 '23 14:06 thibaudcolas