forked from modular/vscode-mojo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (36 loc) · 1000 Bytes
/
.pre-commit-config.yaml
File metadata and controls
40 lines (36 loc) · 1000 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- repo: local
hooks:
- id: prettier
name: format
language: node
entry: prettier --write
types_or: [javascript, ts]
additional_dependencies:
- 'prettier@^3.3.3'
- id: eslint
name: lint
language: node
entry: npx eslint
types_or: [javascript, ts]
additional_dependencies:
- 'eslint@^9.30.1'
- 'typescript-eslint@^8.35.1'
- id: tsc
name: type check
language: node
entry: tsc --noEmit -p ./
pass_filenames: false
types_or: [javascript, ts]
additional_dependencies:
- 'typescript@^4.6.4'
- id: check-license-headers
name: check license headers
language: python
entry: python ./utils/license.py