Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit b7f1072

Browse files
committed
fix: lint issues by disabling valid-jsdoc rules
1 parent 3143efd commit b7f1072

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

src/connection/connection.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict'
2+
/* eslint-disable valid-jsdoc */
23

34
const PeerId = require('peer-id')
45
const multiaddr = require('multiaddr')
@@ -143,7 +144,7 @@ class Connection {
143144
return 'Connection'
144145
}
145146

146-
get [connectionSymbol]() {
147+
get [connectionSymbol] () {
147148
return true
148149
}
149150

@@ -153,7 +154,7 @@ class Connection {
153154
* @param {any} other
154155
* @returns {other is Connection}
155156
*/
156-
static isConnection(other) {
157+
static isConnection (other) {
157158
return Boolean(other && other[connectionSymbol])
158159
}
159160

@@ -246,5 +247,4 @@ class Connection {
246247
}
247248
}
248249

249-
250250
module.exports = Connection

src/pubsub/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict'
2+
/* eslint-disable valid-jsdoc */
23

34
const debug = require('debug')
45
const EventEmitter = require('events')

src/pubsub/utils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict'
2+
/* eslint-disable valid-jsdoc */
23

34
const randomBytes = require('libp2p-crypto/src/random-bytes')
45
const uint8ArrayToString = require('uint8arrays/to-string')
@@ -105,7 +106,7 @@ exports.normalizeInRpcMessage = (message, peerId) => {
105106

106107
/**
107108
* @template {Object} T
108-
*
109+
*
109110
* @param {T} message
110111
* @return {T & {from?: Uint8Array, data?: Uint8Array}}
111112
*/

src/topology/index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
'use strict'
2+
/* eslint-disable valid-jsdoc */
23

34
const noop = () => {}
45
const topologySymbol = Symbol.for('@libp2p/js-interfaces/topology')
@@ -33,10 +34,10 @@ class Topology {
3334
}
3435

3536
get [Symbol.toStringTag] () {
36-
return 'Topology'
37+
return 'Topology'
3738
}
3839

39-
get [topologySymbol]() {
40+
get [topologySymbol] () {
4041
return true
4142
}
4243

@@ -46,7 +47,7 @@ class Topology {
4647
* @param {any} other
4748
* @returns {other is Topology}
4849
*/
49-
static isTopology(other) {
50+
static isTopology (other) {
5051
return Boolean(other && other[topologySymbol])
5152
}
5253

src/topology/multicodec-topology.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
'use strict'
2+
/* eslint-disable valid-jsdoc */
23

34
const Topology = require('./index')
45
const multicodecTopologySymbol = Symbol.for('@libp2p/js-interfaces/topology/multicodec-topology')
56

6-
77
class MulticodecTopology extends Topology {
88
/**
99
* @param {Object} props
@@ -50,7 +50,7 @@ class MulticodecTopology extends Topology {
5050
return 'Topology'
5151
}
5252

53-
get [multicodecTopologySymbol]() {
53+
get [multicodecTopologySymbol] () {
5454
return true
5555
}
5656

@@ -60,7 +60,7 @@ class MulticodecTopology extends Topology {
6060
* @param {any} other
6161
* @returns {other is MulticodecTopology}
6262
*/
63-
static isMulticodecTopology(other) {
63+
static isMulticodecTopology (other) {
6464
return Boolean(other && other[multicodecTopologySymbol])
6565
}
6666

0 commit comments

Comments
 (0)