mirror of
https://github.com/ivuorinen/homebrew-tap.git
synced 2026-02-13 22:49:55 +00:00
chore: fixes, several improvements and refactorings (#2)
* chore: fixes * chore: rubocop fixes, linting, etc. * chore: switching to use `brew style` only * chore: use `brew style` for linting, skip example formulae in ci.yml * chore(lint): fixes, additions and tweaks
This commit is contained in:
29
.pre-commit-config.yaml
Normal file
29
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v6.0.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- id: check-json
|
||||
- id: check-merge-conflict
|
||||
- id: detect-private-key
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: brew-style
|
||||
name: Brew Style
|
||||
entry: brew style --fix --reset-cache .
|
||||
language: system
|
||||
types: [ruby]
|
||||
pass_filenames: false
|
||||
require_serial: true
|
||||
exclude: ^(docs/|vendor/|bin/|tmp/|\.git/|node_modules/)
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v4.0.0-alpha.8
|
||||
hooks:
|
||||
- id: prettier
|
||||
types_or: [css, javascript, json, yaml]
|
||||
exclude: "^docs/"
|
||||
Reference in New Issue
Block a user