-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.26 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: pretty-format-json
name: Pretty Format JSON
args: [--autofix, --no-sort-keys]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: "v9.15.0"
hooks:
- id: eslint
name: ESLint
files: ^query-connector/.*\.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
additional_dependencies:
- eslint@8.56.0
- eslint-config-next
- eslint-config-prettier
- "@typescript-eslint/parser"
- "@typescript-eslint/eslint-plugin"
- typescript
- "@next/eslint-plugin-next"
- eslint-plugin-unused-imports
- eslint-plugin-jsdoc
args: ["--config=./query-connector/.eslintrc.json", "--fix"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
name: Prettier
types_or: [css, javascript, tsx, ts, yaml]
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit hooks
autofix_prs: true
autoupdate_branch: ""
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: weekly
skip: [pretty-format-json]
submodules: false