@@ -6,7 +6,7 @@ exclude: |
6
6
# Files and folders generated by bots, to avoid loops
7
7
^setup/|/static/description/index\.html$|
8
8
# We don't want to mess with tool-generated files
9
- .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
9
+ .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
10
10
# Maybe reactivate this when all README files include prettier ignore tags?
11
11
^README\.md$|
12
12
# Library files can have extraneous formatting (even minimized)
@@ -43,11 +43,11 @@ repos:
43
43
language : fail
44
44
files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
45
45
- repo : https://github.com/sbidoul/whool
46
- rev : v0.5
46
+ rev : v1.2
47
47
hooks :
48
48
- id : whool-init
49
49
- repo : https://github.com/oca/maintainer-tools
50
- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
50
+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
51
51
hooks :
52
52
# update the NOT INSTALLABLE ADDONS section above
53
53
- id : oca-update-pre-commit-excluded-addons
@@ -68,25 +68,37 @@ repos:
68
68
hooks :
69
69
- id : oca-checks-odoo-module
70
70
- id : oca-checks-po
71
- - repo : https://github.com/pre-commit/mirrors-prettier
72
- rev : v2.7.1
71
+ args :
72
+ - --disable=po-pretty-format
73
+ - repo : local
73
74
hooks :
74
75
- id : prettier
75
76
name : prettier (with plugin-xml)
77
+ entry : prettier
78
+ args :
79
+ - --write
80
+ - --list-different
81
+ - --ignore-unknown
82
+ types : [text]
83
+ files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
84
+ language : node
76
85
additional_dependencies :
77
86
- " prettier@2.7.1"
78
87
- " @prettier/plugin-xml@2.2.0"
79
- args :
80
- - --plugin=@prettier/plugin-xml
81
- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
82
- - repo : https://github.com/pre-commit/mirrors-eslint
83
- rev : v8.24.0
88
+ - repo : local
84
89
hooks :
85
90
- id : eslint
86
- verbose : true
91
+ name : eslint
92
+ entry : eslint
87
93
args :
88
94
- --color
89
95
- --fix
96
+ verbose : true
97
+ types : [javascript]
98
+ language : node
99
+ additional_dependencies :
100
+ - " eslint@8.24.0"
101
+ - " eslint-plugin-jsdoc@"
90
102
- repo : https://github.com/pre-commit/pre-commit-hooks
91
103
rev : v4.3.0
92
104
hooks :
0 commit comments