[IMP] test_lint, *: enable eslint aditional rules

*: google_calendar, website_sale_loyalty

rules enabled :
    - no-dupe-keys
    - no-dupe-args
    - no-dupe-else-if

closes odoo/odoo#105398

Related: odoo/enterprise#33783
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
Jorge Pinna Puissant
2022-11-09 10:56:54 +01:00
parent d5ddfb438a
commit f10a9b8361
3 changed files with 3 additions and 3 deletions
@@ -23,7 +23,6 @@ QUnit.module('Google Calendar', {
partner_id: {string: "user", type: "many2one", relation: 'partner', related: 'user_id.partner_id'},
name: {string: "name", type: "char"},
start_date: {string: "start date", type: "date"},
start_date: {string: "start date", type: "date"},
stop_date: {string: "stop date", type: "date"},
start: {string: "start datetime", type: "datetime"},
stop: {string: "stop datetime", type: "datetime"},
@@ -53,7 +53,6 @@ tour.register('shop_sale_gift_card', {
},
{
content: 'check gift card amount',
trigger: '.oe_currency_value:contains("-45.00")',
trigger: '.oe_website_sale .oe_cart',
run: function () {}, // it's a check
},
@@ -82,7 +81,6 @@ tour.register('shop_sale_gift_card', {
tourUtils.goToCart({quantity: 2}),
{
content: 'check gift card amount',
trigger: '.oe_currency_value:contains("-45.00")',
trigger: '.oe_website_sale .oe_cart',
run: function () {}, // it's a check
},
+3
View File
@@ -14,6 +14,9 @@
"no-const-assign": ["error"],
"no-debugger": ["error"],
"no-dupe-class-members": ["error"],
"no-dupe-keys": ["error"],
"no-dupe-args": ["error"],
"no-dupe-else-if": ["error"],
"no-unsafe-negation": ["error"],
"no-duplicate-imports": ["error"],
"valid-typeof": ["error"],