Skip to content

Commit 3d86616

Browse files
author
Rui Marinho
committed
Update coding style to comply with linting rules
1 parent c2bdd92 commit 3d86616

File tree

4 files changed

+30
-31
lines changed

4 files changed

+30
-31
lines changed

.eslintrc.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@ extends: seegno
22

33
rules:
44
id-length: 0
5+
id-match: 0
6+
new-cap: 0
57
no-bitwise: 0
68
no-new: 0
9+
no-underscore-dangle: 0

package.json

+20-23
Original file line numberDiff line numberDiff line change
@@ -31,45 +31,42 @@
3131
"scripts": {
3232
"changelog": "github_changelog_generator --no-issues --header-label='# Changelog' --future-release=v$npm_config_future_release && sed -i '' -e :a -e '$d;N;2,4ba' -e 'P;D' CHANGELOG.md",
3333
"coverage": "nyc --reporter=html --reporter=text npm test",
34-
"lint": "eslint src test && jscs src test",
34+
"lint": "eslint src test",
3535
"prepublish": "npm run transpile",
3636
"test": "NODE_ENV=test mocha $npm_package_options_mocha",
3737
"testdocker": "docker-compose run --rm sut",
3838
"transpile": "rm -rf dist/* && babel src --out-dir dist/src && babel test --out-dir dist/test && cp package.json dist/",
3939
"version": "npm run changelog --future-release=$npm_package_version && npm run transpile && git add -A CHANGELOG.md dist"
4040
},
4141
"dependencies": {
42-
"bluebird": "^3.3.5",
43-
"debugnyan": "0.0.2",
44-
"google-libphonenumber": "^1.0.20",
45-
"lodash": "^4.12.0",
46-
"qs": "^6.2.0",
47-
"request": "^2.72.0",
42+
"bluebird": "^3.4.6",
43+
"debugnyan": "^1.0.0",
44+
"google-libphonenumber": "^2.0.2",
45+
"lodash": "^4.16.2",
46+
"qs": "^6.2.1",
47+
"request": "^2.75.0",
4848
"request-debug": "^0.2.0",
4949
"standard-http-error": "^2.0.0",
50-
"urijs": "^1.18.0",
50+
"urijs": "^1.18.2",
5151
"url-escape-tag": "^1.0.0",
52-
"validator": "^5.2.0",
53-
"validator.js": "^2.0.0",
54-
"validator.js-asserts": "^3.0.0"
52+
"validator": "^6.0.0",
53+
"validator.js": "^2.0.3",
54+
"validator.js-asserts": "^3.0.1"
5555
},
5656
"devDependencies": {
57-
"babel-cli": "^6.8.0",
58-
"babel-eslint": "^6.0.4",
57+
"babel-cli": "^6.14.0",
58+
"babel-eslint": "^7.0.0",
5959
"babel-plugin-transform-async-to-module-method": "^6.8.0",
6060
"babel-preset-es2015-node4": "^2.1.0",
61-
"babel-preset-stage-1": "^6.3.13",
62-
"babel-register": "^6.8.0",
63-
"eslint": "^2.10.2",
64-
"eslint-config-seegno": "^4.0.0",
65-
"eslint-plugin-babel": "^3.2.0",
66-
"eslint-plugin-sort-class-members": "^1.0.1",
67-
"isparta": "^4.0.0",
68-
"mocha": "^2.3.4",
61+
"babel-preset-stage-1": "^6.13.0",
62+
"babel-register": "^6.14.0",
63+
"eslint": "^3.6.1",
64+
"eslint-config-seegno": "^6.0.0",
65+
"mocha": "^3.1.0",
6966
"nock": "^8.0.0",
70-
"nyc": "^6.4.4",
67+
"nyc": "^8.3.0",
7168
"pre-commit": "^1.1.3",
72-
"should": "^8.3.1"
69+
"should": "^11.1.0"
7370
},
7471
"engines": {
7572
"node": ">=4"

test/asserts/signature-assert_test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ describe('SignatureAssert', () => {
4747
key: 'foo',
4848
request: {
4949
body: {
50-
qux: 'net',
5150
foo: {
5251
bar: {
5352
biz: 'foo'
5453
}
55-
}
54+
},
55+
qux: 'net'
5656
},
5757
headers: {
5858
host: 'foo.bar',
@@ -81,12 +81,12 @@ describe('SignatureAssert', () => {
8181
key: 'foo',
8282
request: {
8383
body: {
84-
qux: 'net',
8584
foo: {
8685
bar: {
8786
biz: 'foo'
8887
}
89-
}
88+
},
89+
qux: 'net'
9090
},
9191
headers: {
9292
host: 'foo.bar',
@@ -105,12 +105,12 @@ describe('SignatureAssert', () => {
105105
key: 'foo',
106106
request: {
107107
body: {
108-
qux: 'net',
109108
foo: {
110109
bar: {
111110
biz: 'foo bar'
112111
}
113-
}
112+
},
113+
qux: 'net'
114114
},
115115
headers: {
116116
host: 'foo.bar',

test/utils/uuid.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ import crypto from 'crypto';
1010
*/
1111

1212
export default function uuid(a) {
13-
return a ? (a ^ crypto.randomBytes(1)[0] % 16 >> a / 4).toString(16) :
14-
([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid);
13+
return a ? (a ^ crypto.randomBytes(1)[0] % 16 >> a / 4).toString(16) : ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid);
1514
}

0 commit comments

Comments
 (0)