From f5c5e51917e5dc479576778edbd97c2c24b10ffd Mon Sep 17 00:00:00 2001 From: "Simon Genin (ges)" Date: Fri, 20 Jan 2023 15:15:52 +0000 Subject: [PATCH] [FIX] web: tooling: fix support for older tooling Older tooling used prettier config files. The issue was that the disable command of the tooling was also changed to not remove those files as they shouldn't exist anymore. But changing from 16 to master without manually triggering a tooling "disable" would then left the prettier config and mess with the addons eslint whitelist. closes odoo/odoo#110582 Signed-off-by: Samuel Degueldre --- addons/web/tooling/disable.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/tooling/disable.sh b/addons/web/tooling/disable.sh index 7e43155b2ac..211139584a2 100755 --- a/addons/web/tooling/disable.sh +++ b/addons/web/tooling/disable.sh @@ -10,6 +10,11 @@ disableInDir () { rm package.json rm package-lock.json rm -r node_modules + + # to support old versions + rm -f .prettierignore + rm -r .prettierrc.json + cd - &> /dev/null }