@@ -5,7 +5,7 @@ exclude: |
55 # Files and folders generated by bots, to avoid loops
66 ^setup/|/static/description/index\.html$|
77 # We don't want to mess with tool-generated files
8- .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
8+ .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
99 # Maybe reactivate this when all README files include prettier ignore tags?
1010 ^README\.md$|
1111 # Library files can have extraneous formatting (even minimized)
@@ -39,11 +39,11 @@ repos:
3939 language : fail
4040 files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
4141 - repo : https://github.com/sbidoul/whool
42- rev : v0.5
42+ rev : v1.2
4343 hooks :
4444 - id : whool-init
4545 - repo : https://github.com/oca/maintainer-tools
46- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
46+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
4747 hooks :
4848 # update the NOT INSTALLABLE ADDONS section above
4949 - id : oca-update-pre-commit-excluded-addons
@@ -64,25 +64,37 @@ repos:
6464 hooks :
6565 - id : oca-checks-odoo-module
6666 - id : oca-checks-po
67- - repo : https://github.com/pre-commit/mirrors-prettier
68- rev : v2.7.1
67+ args :
68+ - --disable=po-pretty-format
69+ - repo : local
6970 hooks :
7071 - id : prettier
7172 name : prettier (with plugin-xml)
73+ entry : prettier
74+ args :
75+ - --write
76+ - --list-different
77+ - --ignore-unknown
78+ types : [text]
79+ files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
80+ language : node
7281 additional_dependencies :
7382 - " prettier@2.7.1"
7483 - " @prettier/plugin-xml@2.2.0"
75- args :
76- - --plugin=@prettier/plugin-xml
77- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
78- - repo : https://github.com/pre-commit/mirrors-eslint
79- rev : v8.24.0
84+ - repo : local
8085 hooks :
8186 - id : eslint
82- verbose : true
87+ name : eslint
88+ entry : eslint
8389 args :
8490 - --color
8591 - --fix
92+ verbose : true
93+ types : [javascript]
94+ language : node
95+ additional_dependencies :
96+ - " eslint@8.24.0"
97+ - " eslint-plugin-jsdoc@"
8698 - repo : https://github.com/pre-commit/pre-commit-hooks
8799 rev : v4.3.0
88100 hooks :
0 commit comments