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

Commit e957c29

Browse files
committed
lint: use standard
1 parent d3b9ff3 commit e957c29

File tree

4 files changed

+13
-19
lines changed

4 files changed

+13
-19
lines changed

.eslintrc

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
{
22
"extends": [
3-
"jongleberry"
3+
"standard"
44
],
55
"rules": {
6-
// node v0.10+
7-
"object-shorthand": 0,
8-
"no-var": 0,
9-
"prefer-arrow-callback": 0,
6+
107
}
118
}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55

66
node_modules
77
coverage
8-
cache

package.json

+7-9
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,20 @@
2222
"spdy": "^1.32.4"
2323
},
2424
"devDependencies": {
25-
"babel-eslint": "next",
25+
"babel-eslint": "^7.1.1",
2626
"bluebird": "^3.3.1",
27-
"eslint": "^2.1.0",
28-
"eslint-config-jongleberry": "^1.3.1",
29-
"eslint-config-standard-jsx": "^1.1.1",
30-
"eslint-plugin-promise": "^1.0.8",
31-
"eslint-plugin-react": "^3.16.1",
32-
"eslint-plugin-standard": "^1.3.2",
27+
"eslint": "^3.12.2",
28+
"eslint-config-standard": "^6.2.1",
29+
"eslint-plugin-promise": "^3.4.0",
30+
"eslint-plugin-standard": "^2.0.1",
3331
"istanbul": "^0.4.2",
34-
"mocha": "^2.0.0",
32+
"mocha": "^3.2.0",
3533
"raw-body": "^1.0.0",
3634
"spdy": "^1.0.0",
3735
"spdy-keys": "^0.0.0"
3836
},
3937
"scripts": {
40-
"lint": "eslint lib test",
38+
"lint": "eslint . --fix",
4139
"test": "mocha",
4240
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot",
4341
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot"

test/test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe('Buffers', function () {
152152
threshold: 1,
153153
headers: {
154154
'content-encoding': 'gzip',
155-
'content-type': 'text/plain',
155+
'content-type': 'text/plain'
156156
},
157157
body: body
158158
})
@@ -190,7 +190,7 @@ describe('Compression', function () {
190190
return listen(function (req, res) {
191191
return SPDY(res).push({
192192
path: '/something.txt',
193-
body: 'lol',
193+
body: 'lol'
194194
})
195195
}).then(pull).then(function (res) {
196196
assert(!res.headers['content-encoding'])
@@ -275,15 +275,15 @@ function pull () {
275275
return new Promise(function (resolve, reject) {
276276
agent = spdy.createAgent({
277277
port: port,
278-
rejectUnauthorized: false,
278+
rejectUnauthorized: false
279279
})
280280

281281
agent.once('error', reject)
282282
agent.once('push', resolve)
283283

284284
https.request({
285285
agent: agent,
286-
path: '/',
286+
path: '/'
287287
})
288288
.once('error', reject)
289289
.once('response', function (res) {

0 commit comments

Comments
 (0)