-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
106 lines (98 loc) · 2.61 KB
/
.pre-commit-config.yaml
File metadata and controls
106 lines (98 loc) · 2.61 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Pre-commit hooks configuration for FFXI Complete
# These hooks run before each commit to maintain code quality
# See https://pre-commit.com for more information
repos:
# Built-in hooks for basic file checks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: \.md$
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=500]
- id: mixed-line-ending
args: [--fix=lf]
# JavaScript/TypeScript/JSON formatting
- repo: local
hooks:
- id: prettier
name: Prettier
entry: yarn prettier --write
language: system
files: \.(js|ts|tsx|json|yaml|yml|md)$
exclude: |
(?x)^(
yarn\.lock|
package-lock\.json|
\.cursor/temp/.*|
coverage/.*|
dist/.*|
node_modules/.*
)$
pass_filenames: true
# Local project hooks
- repo: local
hooks:
# ESLint with auto-fix
- id: eslint
name: ESLint (auto-fix)
entry: yarn lint --fix
language: system
files: \.(js|ts|tsx)$
exclude: |
(?x)^(
node_modules/.*|
dist/.*|
coverage/.*|
\.cursor/temp/.*
)$
pass_filenames: false
# TypeScript type checking
- id: typescript
name: TypeScript Check
entry: yarn type-check
language: system
files: \.(ts|tsx)$
exclude: |
(?x)^(
node_modules/.*|
dist/.*|
coverage/.*|
\.cursor/temp/.*
)$
pass_filenames: false
# Markdown linting
- id: markdownlint
name: Markdown Lint
entry: yarn lint:md
language: system
files: \.(md|mdc)$
exclude: |
(?x)^(
node_modules/.*|
\.cursor/temp/.*
)$
pass_filenames: false
# ESLint rules validation
- id: eslint-rules-validation
name: ESLint Rules Validation
entry: yarn validate:rules:structure
language: system
files: ^eslint-rules/
pass_filenames: false
# ESLint rules testing (fast subset)
- id: eslint-rules-test
name: ESLint Rules Test
entry: yarn test:rules
language: system
files: ^eslint-rules/
pass_filenames: false
# Global configuration
default_stages: [pre-commit]
fail_fast: false
minimum_pre_commit_version: 3.0.0