From a90f23afddc275c4f01fc5c108accfffbe25456c Mon Sep 17 00:00:00 2001 From: David Date: Mon, 27 May 2024 15:05:06 +0200 Subject: [PATCH] [FIX] Support ecmaVersion 2022 for Odoo 17.0 Odoo officially supports ecmaVersion 2022 from v17: https://github.com/odoo/odoo/blame/9a11717c17b860ec2f1b2e228517c0d3945c474a/addons/web/tooling/_eslintrc.json#L9 --- ...=> {% if odoo_version > 12 %}.eslintrc.yml{% endif %}.jinja} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/{{% if odoo_version > 12 %}.eslintrc.yml{% endif %} => {% if odoo_version > 12 %}.eslintrc.yml{% endif %}.jinja} (98%) diff --git a/src/{% if odoo_version > 12 %}.eslintrc.yml{% endif %} b/src/{% if odoo_version > 12 %}.eslintrc.yml{% endif %}.jinja similarity index 98% rename from src/{% if odoo_version > 12 %}.eslintrc.yml{% endif %} rename to src/{% if odoo_version > 12 %}.eslintrc.yml{% endif %}.jinja index fed88d7..a06a493 100644 --- a/src/{% if odoo_version > 12 %}.eslintrc.yml{% endif %} +++ b/src/{% if odoo_version > 12 %}.eslintrc.yml{% endif %}.jinja @@ -4,7 +4,7 @@ env: # See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449 parserOptions: - ecmaVersion: 2019 + ecmaVersion: {% if odoo_version < 17 %}2019{% else %}2022{% endif %} overrides: - files: