mirror of
https://github.com/hanzoai/cookie-parser.git
synced 2026-09-24 16:58:03 +00:00
lint: apply standard 13 style
This commit is contained in:
+2
-2
@@ -27,8 +27,8 @@ before_install:
|
||||
# Setup Node.js version-specific dependencies
|
||||
- |
|
||||
# eslint for linting
|
||||
# - remove on Node.js < 6
|
||||
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 6 ]]; then
|
||||
# - remove on Node.js < 8
|
||||
if [[ "$(cut -d. -f1 <<< "$TRAVIS_NODE_VERSION")" -lt 8 ]]; then
|
||||
node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
|
||||
grep -E '^eslint(-|$)' | \
|
||||
xargs npm rm --save-dev
|
||||
|
||||
+5
-5
@@ -18,12 +18,12 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"deep-equal": "1.0.1",
|
||||
"eslint": "5.16.0",
|
||||
"eslint-config-standard": "12.0.0",
|
||||
"eslint-plugin-import": "2.17.3",
|
||||
"eslint": "6.0.1",
|
||||
"eslint-config-standard": "13.0.1",
|
||||
"eslint-plugin-import": "2.18.0",
|
||||
"eslint-plugin-markdown": "1.0.0",
|
||||
"eslint-plugin-node": "7.0.1",
|
||||
"eslint-plugin-promise": "4.1.1",
|
||||
"eslint-plugin-node": "9.1.0",
|
||||
"eslint-plugin-promise": "4.2.1",
|
||||
"eslint-plugin-standard": "4.0.0",
|
||||
"istanbul": "0.4.5",
|
||||
"mocha": "6.1.4",
|
||||
|
||||
@@ -272,7 +272,7 @@ describe('cookieParser.signedCookies(obj, secret)', function () {
|
||||
fizz: 's:foobar.JTCAgiMWsnuZpN3mrYnEUjXlGxmDi4POCBnWbRxse88'
|
||||
}
|
||||
|
||||
deepEqual(cookieParser.signedCookies(obj, [ 'keyboard cat', 'nyan cat' ]), {
|
||||
deepEqual(cookieParser.signedCookies(obj, ['keyboard cat', 'nyan cat']), {
|
||||
buzz: 'foobar',
|
||||
fizz: 'foobar'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user