mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Add prettier pre-commit hook; close #5490
This commit is contained in:
@@ -3,7 +3,7 @@ default_stages: [commit, push]
|
||||
default_language_version:
|
||||
# force all unspecified Python hooks to run python3
|
||||
python: python3
|
||||
minimum_pre_commit_version: '2.18.1'
|
||||
minimum_pre_commit_version: "2.18.1"
|
||||
repos:
|
||||
- repo: meta
|
||||
hooks:
|
||||
@@ -35,7 +35,7 @@ repos:
|
||||
- id: forbid-tabs
|
||||
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$
|
||||
- id: remove-tabs
|
||||
args: [--whitespaces-count, '2']
|
||||
args: [--whitespaces-count, "2"]
|
||||
exclude: Makefile$|Makefile\..+$|makefile$|\.mk$
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.2.6
|
||||
@@ -50,6 +50,10 @@ repos:
|
||||
- id: script-must-not-have-extension
|
||||
name: Local policy is to exclude extension from all shell files
|
||||
types: [shell]
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v4.0.0-alpha.8
|
||||
hooks:
|
||||
- id: prettier
|
||||
- repo: https://github.com/igorshubovych/markdownlint-cli
|
||||
rev: v0.38.0
|
||||
hooks:
|
||||
|
||||
Reference in New Issue
Block a user