Merge pull request #2692 from chmelevskij/chore/sonar-cloud-eslint-match

chore: add no-vars rule to match sonar cloud
10.8-maintenance
Asizon 2022-01-18 12:13:17 +01:00 committed by GitHub
commit 27b3afbca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

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

View File

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

View File

@ -12,6 +12,9 @@
*/ */
'use strict'; '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 () { var STM32DFU_protocol = function () {
this.callback = null; this.callback = null;
this.hex = null; this.hex = null;