diff --git a/apps/.eslintrc.json b/apps/.eslintrc.json index ff0cc46fe..4ed76396a 100644 --- a/apps/.eslintrc.json +++ b/apps/.eslintrc.json @@ -34,7 +34,6 @@ "no-delete-var": "off", "no-empty": "off", "no-inner-declarations": "off", - "no-mixed-spaces-and-tabs": "off", "no-octal": "off", "no-prototype-builtins": "off", "no-redeclare": "off", diff --git a/apps/_example_widget/widget.js b/apps/_example_widget/widget.js index 3893e3096..f7aed6991 100644 --- a/apps/_example_widget/widget.js +++ b/apps/_example_widget/widget.js @@ -3,7 +3,7 @@ currently-running apps */ (() => { function draw() { g.reset(); // reset the graphics context to defaults (color/font/etc) - // add your code + // add your code g.drawString("X", this.x, this.y); } diff --git a/apps/berlinc/berlin-clock.js b/apps/berlinc/berlin-clock.js index 93b584f66..0c8e2d076 100644 --- a/apps/berlinc/berlin-clock.js +++ b/apps/berlinc/berlin-clock.js @@ -49,7 +49,7 @@ function drawBerlinClock() { Bangle.on('lcdPower', (on) => { g.clear(); if (on) { - Bangle.drawWidgets(); + Bangle.drawWidgets(); // call your app function here drawBerlinClock(); }}); diff --git a/apps/metronome/metronome.js b/apps/metronome/metronome.js index add6fee16..6e0827c19 100644 --- a/apps/metronome/metronome.js +++ b/apps/metronome/metronome.js @@ -65,7 +65,7 @@ Bangle.on('touch', function(button) { // setting bpm by tapping the screen. Uses the mean time difference between several tappings. if (tindex < time_diffs.length) { if (Date.now()-tStart < 5000) { - time_diffs[tindex] = Date.now()-tStart; + time_diffs[tindex] = Date.now()-tStart; } } else { tindex=0; diff --git a/apps/numerals/numerals.app.js b/apps/numerals/numerals.app.js index b24e8bc5e..f95c7d379 100644 --- a/apps/numerals/numerals.app.js +++ b/apps/numerals/numerals.app.js @@ -51,8 +51,8 @@ function drawNum(num,col,x,y,func){ let tx = x*100+25; let ty = y*104+32; for (let i=0;i0) g.setColor((func==fill)?"#000000":col); - func(translate(tx,ty,numerals[num][i])); + if (i>0) g.setColor((func==fill)?"#000000":col); + func(translate(tx,ty,numerals[num][i])); } } diff --git a/apps/widhrm/widget.js b/apps/widhrm/widget.js index ca66f8b44..a591fa0df 100644 --- a/apps/widhrm/widget.js +++ b/apps/widhrm/widget.js @@ -5,7 +5,7 @@ function draw() { var width = 24; - g.reset(); + g.reset(); g.setFont("6x8", 1); g.setFontAlign(0, 0); g.clearRect(this.x,this.y+15,this.x+width,this.y+23); // erase background diff --git a/apps/widram/widget.js b/apps/widram/widget.js index 08710b726..bd44b98a4 100644 --- a/apps/widram/widget.js +++ b/apps/widram/widget.js @@ -1,7 +1,7 @@ (() => { function draw() { g.reset(); - var m = process.memory(); + var m = process.memory(); var pc = Math.round(m.usage*100/m.total); g.drawImage(atob("BwgBqgP////AVQ=="), this.x+(24-7)/2, this.y+4); g.setColor(pc>70 ? "#ff0000" : (pc>50 ? "#ffff00" : "#ffffff"));