Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit a419f04

Browse files
committed
Merge pull request #76 from ipfs/update-standard
Update to standard 6
2 parents e8dd778 + 45fb69c commit a419f04

31 files changed

+74
-73
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"main": "src/index.js",
99
"scripts": {
10-
"lint": "standard",
10+
"lint": "standard --verbose | snazzy",
1111
"coverage": "istanbul cover --print both -- _mocha tests/test-core/index.js",
1212
"coverage:http-api": "istanbul cover --print both -- _mocha tests/test-http-api/index.js",
1313
"test": "npm run test:node && npm run test:browser",
@@ -61,7 +61,8 @@
6161
"nexpect": "^0.5.0",
6262
"pre-commit": "^1.1.2",
6363
"rimraf": "^2.4.4",
64-
"standard": "^5.4.1",
64+
"snazzy": "^3.0.0",
65+
"standard": "^6.0.7",
6566
"stream-to-promise": "^1.1.0",
6667
"transform-loader": "^0.2.3",
6768
"webpack": "^2.0.7-beta"

src/cli/commands/add.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const Command = require('ronin').Command
55
module.exports = Command.extend({
66
desc: '',
77

8-
run: name => {
8+
run: (name) => {
99
}
1010
})

src/cli/commands/bootstrap/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = Command.extend({
1515
var node = new IPFS()
1616
node.bootstrap.list((err, list) => {
1717
if (err) { return log.error(err) }
18-
list.forEach(node => {
18+
list.forEach((node) => {
1919
console.log(node)
2020
})
2121
})

src/cli/commands/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ronin = require('ronin')
77
module.exports = Command.extend({
88
desc: '',
99

10-
run: name => {
10+
run: (name) => {
1111
const cli = ronin(path.resolve(__dirname, '..'))
1212

1313
cli.setupCommands()

src/cli/commands/daemon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ log.error = debug('cli:daemon:error')
99
module.exports = Command.extend({
1010
desc: 'Start a long-running daemon process',
1111

12-
run: name => {
12+
run: (name) => {
1313
console.log('Initializing daemon...')
1414
httpAPI.start((err) => {
1515
if (err) {

src/cli/commands/dns.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const Command = require('ronin').Command
55
module.exports = Command.extend({
66
desc: '',
77

8-
run: name => {
8+
run: (name) => {
99
}
1010
})

src/cli/commands/get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const Command = require('ronin').Command
33
module.exports = Command.extend({
44
desc: '',
55

6-
run: name => {
6+
run: (name) => {
77
}
88
})

src/cli/commands/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ module.exports = Command.extend({
2424
}
2525
},
2626

27-
run: name => {
27+
run: (name) => {
2828
}
2929
})

src/cli/commands/ls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const Command = require('ronin').Command
55
module.exports = Command.extend({
66
desc: '',
77

8-
run: name => {
8+
run: (name) => {
99
}
1010
})

src/cli/commands/mount.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ const Command = require('ronin').Command
55
module.exports = Command.extend({
66
desc: '',
77

8-
run: name => {
8+
run: (name) => {
99
}
1010
})

0 commit comments

Comments
 (0)