Skip to content

Commit f190000

Browse files
committed
chore(project): add pre-commit config
1 parent fd54c9a commit f190000

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
repos:
2+
3+
# Default
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.1.0
6+
hooks:
7+
- id: check-yaml ### Control YAML format
8+
- id: check-json ### Control JSON format
9+
- id: end-of-file-fixer ### Fix end of file with one line
10+
- id: trailing-whitespace ### Remove end of line spaces
11+
- id: check-added-large-files ### Check files size to add only 500ko max
12+
- id: check-merge-conflict ### Check if there is already merge conflict(s)
13+
- id: detect-private-key ### Detect private keys
14+
15+
# ESLint
16+
- repo: https://github.com/pre-commit/mirrors-eslint
17+
rev: v8.10.0
18+
hooks:
19+
- id: eslint
20+
additional_dependencies:
21+
- eslint-config-airbnb
22+
- eslint-config-prettier
23+
24+
# Conventional Commit
25+
- repo: https://github.com/compilerla/conventional-pre-commit
26+
rev: v1.2.0
27+
hooks:
28+
- id: conventional-pre-commit
29+
stages: [commit-msg]

0 commit comments

Comments
 (0)