mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-05 11:26:43 +08:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
ci:
|
|
autofix_commit_msg: "auto fix by pre-commit hooks"
|
|
autofix_prs: true
|
|
autoupdate_branch: dev
|
|
autoupdate_schedule: weekly
|
|
autoupdate_commit_msg: "auto update by pre-commit hooks"
|
|
repos:
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.12.0
|
|
hooks:
|
|
- id: black
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v2.7.1
|
|
hooks:
|
|
- id: prettier
|
|
types_or: [markdown, ts, tsx]
|
|
exclude: 'admin-frontend/'
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
rev: v8.33.0
|
|
hooks:
|
|
- id: eslint
|
|
additional_dependencies:
|
|
- "eslint@8.2.0"
|
|
- "@typescript-eslint/eslint-plugin"
|
|
- "@typescript-eslint/parser"
|
|
- "eslint-config-airbnb"
|
|
- "eslint-config-airbnb-typescript"
|
|
- "eslint-import-resolver-typescript"
|
|
- "eslint-plugin-import"
|
|
- "eslint-plugin-jsx-a11y"
|
|
- "eslint-plugin-react"
|
|
- "eslint-plugin-react-hooks"
|
|
- "eslint-plugin-react-redux"
|
|
types_or: [ts, tsx]
|
|
types: []
|
|
files: ^admin-frontend/
|
|
args: [--fix, -c, './admin-frontend/.eslintrc.json', --rule, 'import/no-unresolved: off']
|
|
|
|
exclude: 'CHANGELOG.md'
|