Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 87a8f96

Browse files
authored
chore: re-enable linting (#324)
When the JS code was moved into the js/ directory the aegir linting task was no longer considering them for linting. This is because the default globs do not include this path. This PR adds custom lint globs to the aegir config and fixes linting errors. depends on ipfs/aegir#240 License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 91a1b5e commit 87a8f96

File tree

9 files changed

+19
-1
lines changed

9 files changed

+19
-1
lines changed

.aegir.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
'use strict'
2+
3+
module.exports = {
4+
lint: {
5+
files: [
6+
'js/src/**/*.js',
7+
'js/test/**/*.js'
8+
]
9+
}
10+
}

js/src/bitswap/unwant.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 6] */
23
'use strict'
34

45
const waterfall = require('async/waterfall')

js/src/bitswap/wantlist.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 6] */
23
'use strict'
34

45
const waterfall = require('async/waterfall')

js/src/key/list.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 6] */
23
'use strict'
34

45
const timesSeries = require('async/timesSeries')

js/src/key/rename.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 6] */
23
'use strict'
34

45
const chai = require('chai')

js/src/key/rm.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 6] */
23
'use strict'
34

45
const hat = require('hat')

js/src/pubsub/subscribe.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/* eslint-env mocha */
2+
/* eslint max-nested-callbacks: ["error", 6] */
23
'use strict'
34

45
const series = require('async/series')

js/src/utils/swarm.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use strict'
2+
13
const eachSeries = require('async/eachSeries')
24

35
function connect (fromNode, toAddrs, cb) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"homepage": "https://github.com/ipfs/interface-ipfs-core#readme",
3232
"dependencies": {
33-
"aegir": "^14.0.0",
33+
"aegir": "^15.0.0",
3434
"async": "^2.6.1",
3535
"big.js": "^5.1.2",
3636
"bl": "^2.0.1",

0 commit comments

Comments
 (0)