Improved pre-commit and linters config

This commit is contained in:
Antoine Nguyen
2024-02-21 13:30:20 +01:00
parent 692871bedf
commit f1d89bd58f
141 changed files with 10460 additions and 8115 deletions
+12 -13
View File
@@ -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