From 13755f901b5d5a707372efdb79f22626de46c244 Mon Sep 17 00:00:00 2001 From: AWhiteKnight Date: Mon, 4 Nov 2019 09:24:18 +0100 Subject: [PATCH] cleanup lint --- lib/Interval.js | 7 ++----- lib/Interval0.js | 6 +----- lib/Interval1.js | 6 +----- lib/Interval2.js | 6 +----- lib/Interval3.js | 6 +----- lib/Interval4.js | 6 +----- lib/IntervalOnce.js | 6 +----- lib/helper.js | 9 +++------ lib/tools.js | 3 +-- main.test.js | 4 ++++ 10 files changed, 16 insertions(+), 43 deletions(-) diff --git a/lib/Interval.js b/lib/Interval.js index 9dec8b2..f108061 100755 --- a/lib/Interval.js +++ b/lib/Interval.js @@ -1,9 +1,6 @@ -/* jshint -W097 */ -/* jshint -W030 */ /* jshint strict:true */ /* jslint node: true */ -/* jslint esversion: 8 */ -// @ts-nocheck +/* jslint esversion: 9 */ 'use strict'; const si = require('systeminformation'); @@ -19,7 +16,7 @@ class Interval { /** * - * @param {string} src + * @param {any} src * @param {string} tgtId */ async showData(src, tgtId, adapter, init, level = 0) { diff --git a/lib/Interval0.js b/lib/Interval0.js index 227d3fe..9b7a00e 100755 --- a/lib/Interval0.js +++ b/lib/Interval0.js @@ -1,10 +1,6 @@ -/* jshint -W119 */ -/* jshint -W097 */ -/* jshint -W030 */ /* jshint strict:true */ /* jslint node: true */ -/* jslint esversion: 6 */ -// @ts-nocheck +/* jslint esversion: 9 */ 'use strict'; const Interval = require(__dirname + '/Interval.js'); diff --git a/lib/Interval1.js b/lib/Interval1.js index 037af2e..2239d86 100755 --- a/lib/Interval1.js +++ b/lib/Interval1.js @@ -1,10 +1,6 @@ -/* jshint -W119 */ -/* jshint -W097 */ -/* jshint -W030 */ /* jshint strict:true */ /* jslint node: true */ -/* jslint esversion: 6 */ -// @ts-nocheck +/* jslint esversion: 9 */ 'use strict'; const Interval = require(__dirname + '/Interval.js'); diff --git a/lib/Interval2.js b/lib/Interval2.js index a7edc3c..b0e0394 100755 --- a/lib/Interval2.js +++ b/lib/Interval2.js @@ -1,10 +1,6 @@ -/* jshint -W119 */ -/* jshint -W097 */ -/* jshint -W030 */ /* jshint strict:true */ /* jslint node: true */ -/* jslint esversion: 6 */ -// @ts-nocheck +/* jslint esversion: 9 */ 'use strict'; const Interval = require(__dirname + '/Interval.js'); diff --git a/lib/Interval3.js b/lib/Interval3.js index 1180376..0fa529c 100755 --- a/lib/Interval3.js +++ b/lib/Interval3.js @@ -1,10 +1,6 @@ -/* jshint -W119 */ -/* jshint -W097 */ -/* jshint -W030 */ /* jshint strict:true */ /* jslint node: true */ -/* jslint esversion: 6 */ -// @ts-nocheck +/* jslint esversion: 9 */ 'use strict'; const Interval = require(__dirname + '/Interval.js'); diff --git a/lib/Interval4.js b/lib/Interval4.js index 308e8d2..e7ec6e1 100755 --- a/lib/Interval4.js +++ b/lib/Interval4.js @@ -1,11 +1,7 @@ -/* jshint -W119 */ -/* jshint -W097 */ /* jshint -W083 */ -/* jshint -W030 */ /* jshint strict:true */ /* jslint node: true */ -/* jslint esversion: 6 */ -// @ts-nocheck +/* jslint esversion: 9 */ 'use strict'; const Interval = require(__dirname + '/Interval.js'); diff --git a/lib/IntervalOnce.js b/lib/IntervalOnce.js index ae52438..0e0f70d 100755 --- a/lib/IntervalOnce.js +++ b/lib/IntervalOnce.js @@ -1,10 +1,6 @@ -/* jshint -W119 */ -/* jshint -W097 */ -/* jshint -W030 */ /* jshint strict:true */ /* jslint node: true */ -/* jslint esversion: 6 */ -// @ts-nocheck +/* jslint esversion: 9 */ 'use strict'; const Interval = require(__dirname + '/Interval.js'); diff --git a/lib/helper.js b/lib/helper.js index fbd5e3b..e7009b5 100755 --- a/lib/helper.js +++ b/lib/helper.js @@ -1,9 +1,6 @@ -// @ts-nocheck -/* jshint -W097 */ -/* jshint -W117 */ -/* jshint -W119 */ -/* jshint -W083 */ -/* jslint esversion: 6 */ +/* jshint strict:true */ +/* jslint node: true */ +/* jslint esversion: 9 */ 'use strict'; // structure of systeminformation data diff --git a/lib/tools.js b/lib/tools.js index 77ce51d..26e4b0b 100755 --- a/lib/tools.js +++ b/lib/tools.js @@ -1,5 +1,4 @@ -/* jshint -W119 */ -/* jslint esversion: 6 */ +/* jslint esversion: 9 */ const axios = require('axios'); /** diff --git a/main.test.js b/main.test.js index 55c09e8..90b6db0 100755 --- a/main.test.js +++ b/main.test.js @@ -1,3 +1,7 @@ +/* jshint -W117 */ +/* jshint strict:true */ +/* jslint node: true */ +/* jslint esversion: 6 */ 'use strict'; /**