mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Improved pre-commit and linters config
This commit is contained in:
+12
-13
@@ -9,20 +9,19 @@ repos:
|
||||
language: system
|
||||
types: [python]
|
||||
args: ["-rn", "-sn", "--fail-under=5"]
|
||||
- id: prettier
|
||||
name: prettier
|
||||
entry: prettier --config frontend/.prettierrc.json --write --ignore-unknown
|
||||
language: node
|
||||
types: [javascript]
|
||||
additional_dependencies: ["prettier"]
|
||||
- id: eslint
|
||||
name: eslint
|
||||
language: node
|
||||
types: [javascript]
|
||||
entry: eslint --fix
|
||||
additional_dependencies: ["eslint-plugin-vue"]
|
||||
- repo: https://github.com/psf/black
|
||||
rev: "24.2.0"
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/pre-commit/mirrors-eslint
|
||||
rev: "v9.0.0-beta.0"
|
||||
hooks:
|
||||
- id: eslint
|
||||
files: \.(js|vue)$
|
||||
types: [file]
|
||||
additional_dependencies:
|
||||
- eslint
|
||||
- eslint-plugin-vue
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: "v4.0.0-alpha.8" # Use the sha / tag you want to point at
|
||||
hooks:
|
||||
- id: prettier
|
||||
|
||||
Reference in New Issue
Block a user