Merge pull request #1799 from jdekarske/update-eslint

Update eslint
master
Gordon Williams 2022-05-09 09:40:31 +01:00 committed by GitHub
commit 30aea6f318
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 7 deletions

View File

@ -11,7 +11,7 @@ function scrollX(){
gfx.clearRect(0,gfx.getHeight()*(1/4),gfx.getWidth(),0);
gfx.scroll(0,gfx.getHeight()/4);
score++;
if(typeof(m) != undefined && score>0){
if(typeof m !== 'undefined' && score>0){
clearInterval(m);
m = setInterval(scrollY,Math.abs(100/score+15-0.1*score));}
gfx.setColor(1,1,1);

View File

@ -368,8 +368,8 @@ class TextBox {
// x and y are the center points
this.x = x;
this.y = y;
this.text = (typeof text !== undefined) ? text : "Default";
this.col = (typeof col !== undefined) ? col : red;
this.text = text || "Default";
this.col = col || red;
// console.log(`Constr TextBox ${this.text} -> Center: (${this.x}, ${this.y}) | Col ${this.col}`);
}

View File

@ -3,8 +3,13 @@
"description": "Bangle.js App Loader (and Apps)",
"author": "Gordon Williams <gw@pur3.co.uk> (http://espruino.com)",
"version": "0.0.1",
"license": "MIT",
"repository": "https://github.com/espruino/BangleApps",
"devDependencies": {
"eslint": "7.1.0"
"eslint": "^8.14.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.26.0",
"npm-watch": "^0.11.0"
},
"scripts": {
"lint-apps": "eslint ./apps --ext .js",
@ -18,8 +23,5 @@
},
"dependencies": {
"acorn": "^7.2.0"
},
"devDpendencies": {
"npm-watch": "^0.11.0"
}
}