@@ -5,7 +5,7 @@ exclude: |
5
5
# Files and folders generated by bots, to avoid loops
6
6
^setup/|/static/description/index\.html$|
7
7
# 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|
9
9
# Maybe reactivate this when all README files include prettier ignore tags?
10
10
^README\.md$|
11
11
# Library files can have extraneous formatting (even minimized)
39
39
language : fail
40
40
files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
41
41
- repo : https://github.com/sbidoul/whool
42
- rev : v0.5
42
+ rev : v1.2
43
43
hooks :
44
44
- id : whool-init
45
45
- repo : https://github.com/oca/maintainer-tools
@@ -64,25 +64,37 @@ repos:
64
64
hooks :
65
65
- id : oca-checks-odoo-module
66
66
- 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
69
70
hooks :
70
71
- id : prettier
71
72
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
72
81
additional_dependencies :
73
82
- " prettier@2.7.1"
74
83
- " @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
80
85
hooks :
81
86
- id : eslint
82
- verbose : true
87
+ name : eslint
88
+ entry : eslint
83
89
args :
84
90
- --color
85
91
- --fix
92
+ verbose : true
93
+ types : [javascript]
94
+ language : node
95
+ additional_dependencies :
96
+ - " eslint@8.24.0"
97
+ - " eslint-plugin-jsdoc@"
86
98
- repo : https://github.com/pre-commit/pre-commit-hooks
87
99
rev : v4.3.0
88
100
hooks :
0 commit comments