Skip to content

Commit 877ef72

Browse files
committed
Changing linter
1 parent 40b5d27 commit 877ef72

16 files changed

Lines changed: 339 additions & 25 deletions

File tree

components/pryv-monitor/src/UpdateMethod/Socket.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ class Socket extends UpdateMethod {
2121
this.socket = await this.monitor.connection.socket.open();
2222
this.socket.on('eventsChanged', () => { this.monitor.updateEvents(); });
2323
this.socket.on('streamsChanged', () => { this.monitor.updateStreams(); });
24-
/* eslint-disable-next-line node/handle-callback-err */
25-
this.socket.on('error', (error) => { this.monitor.emit(Changes.ERROR.error); });
24+
this.socket.on('error', (error) => { this.monitor.emit(Changes.ERROR, error); });
2625
}
2726

2827
async stop () {

components/pryv-monitor/test/load-helpers.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* [BSD-3-Clause](https://github.com/pryv/lib-js/blob/master/LICENSE)
44
*/
55
/* global expect, pryv, testData */
6-
/* eslint-disable no-unused-expressions */
76

87
require('../src')(pryv);
98
const testStreamId = global.testStreamId = 'monitor-test';

components/pryv-monitor/test/monitor.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ describe('Monitor', function () {
2828
it('throw Error on invalid apiEndpoint', async () => {
2929
let passed = true;
3030
try {
31-
/* eslint-disable-next-line no-unused-vars */
32-
const monitor = new pryv.Monitor('BlipBlop', { limit: 1 });
31+
pryv.Monitor('BlipBlop', { limit: 1 });
3332
passed = false;
3433
} catch (e) {
3534

components/pryv-socket.io/test/socket.io.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* [BSD-3-Clause](https://github.com/pryv/lib-js/blob/master/LICENSE)
44
*/
55
/* global describe, it, before, after, beforeEach, afterEach, expect, pryv, testData */
6-
/* eslint-disable no-unused-expressions */
76

87
const cuid = require('cuid');
98

components/pryv/src/Connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ class Connection {
311311
async addPointsToHFEvent (eventId, fields, points) {
312312
const res = await this.post('events/' + eventId + '/series', {
313313
format: 'flatJSON',
314-
fields: fields,
315-
points: points
314+
fields,
315+
points
316316
});
317317
if (!res.status === 'ok') {
318318
throw new Error('Failed loading serie: ' + JSON.stringify(res.status));

components/pryv/src/Service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class Service {
153153
*/
154154
static buildAPIEndpoint (serviceInfo, username, token) {
155155
const endpoint = serviceInfo.api.replace('{username}', username);
156-
return utils.buildAPIEndpoint({ endpoint: endpoint, token: token });
156+
return utils.buildAPIEndpoint({ endpoint, token });
157157
}
158158

159159
/**

components/pryv/test/Browser.AuthController.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* [BSD-3-Clause](https://github.com/pryv/lib-js/blob/master/LICENSE)
44
*/
55
/* global describe, it, before, after, expect, testData, JSDOM */
6-
/* eslint-disable no-unused-expressions */
76

87
const utils = require('../src/utils.js');
98
const Service = require('../src/Service');

components/pryv/test/Browser.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* [BSD-3-Clause](https://github.com/pryv/lib-js/blob/master/LICENSE)
44
*/
55
/* global describe, it, before, after, expect, JSDOM, pryv, testData */
6-
/* eslint-disable no-unused-expressions */
76

87
function genSettings () {
98
function defaultStateChange (state) {

components/pryv/test/Connection.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* [BSD-3-Clause](https://github.com/pryv/lib-js/blob/master/LICENSE)
44
*/
55
/* global describe, it, before, after, beforeEach, afterEach, expect, JSDOM, pryv, Blob, FormData */
6-
/* eslint-disable no-unused-expressions */
76

87
// URL and URLSearchParams are native in Node.js and browsers
98
const cuid = require('cuid');

components/pryv/test/Service.test.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* [BSD-3-Clause](https://github.com/pryv/lib-js/blob/master/LICENSE)
44
*/
55
/* global describe, it, before, expect, pryv, testData */
6-
/* eslint-disable no-unused-expressions */
76

87
describe('Service', function () {
98
before(async function () {

0 commit comments

Comments
 (0)