pre-commit-stylelint
pre-commit-stylelint copied to clipboard
create a new release
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!
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
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]"