chore: add `no-var` rule to match sonarcloud

10.8-maintenance
Tomas Chmelevskij 2021-12-18 07:50:51 +01:00
parent f4bc4b366b
commit bfec87d931
3 changed files with 4 additions and 1 deletions

View File

@ -16,5 +16,6 @@ module.exports = {
"eol-last": "error",
semi: "error",
"comma-dangle": ["error", "always-multiline"],
"no-var": "error",
},
};

View File

@ -364,7 +364,6 @@ function startProcess() {
case 'setup_osd':
TABS.setup_osd.initialize(content_ready);
break;
case 'configuration':
TABS.configuration.initialize(content_ready);
break;

View File

@ -12,6 +12,9 @@
*/
'use strict';
// Task for the brave ones. There are quite a few shadow variables which clash when
// const or let are used. So need to run thorough tests when chaning `var`
/* eslint-disable no-var */
var STM32DFU_protocol = function () {
this.callback = null;
this.hex = null;