-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
41 lines (36 loc) · 1.08 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: validate-composer-json
name: Validate Composer JSON
entry: "composer validate"
language: system
files: composer\.json
- id: check-js-debug
name: Check javascript debug statements
language: pygrep
entry: '\b(console\s*\.\s*debug|console\s*\.\s*log)\s*\('
files: resources/js/.*\.(js|html|vue)$
- id: js-lint
name: Run ESLint fixer
language: system
entry: './node_modules/.bin/eslint --fix'
files: resources/js/.*\.(js)$
- repo: https://github.com/sibizwolle/pre-commit-hooks
rev: v1.0.2
hooks:
- id: add-ticket-to-commit
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-json
- id: check-yaml
- id: check-xml
- id: check-merge-conflict
default_stages:
- commit