Skip to content

Commit 9a1cc15

Browse files
committed
build: eslint@7.26.0
1 parent 7ff50af commit 9a1cc15

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

.eslintrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ root: true
22
rules:
33
eol-last: error
44
eqeqeq: ["error", "always", { "null": "ignore" }]
5-
indent: ["error", 2, { "SwitchCase": 1 }]
5+
indent: ["error", 2, { "MemberExpression": "off", "SwitchCase": 1 }]
66
no-mixed-spaces-and-tabs: error
77
no-trailing-spaces: error
88
one-var: ["error", { "initialized": "never" }]

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ jobs:
128128
shell: bash
129129
run: |
130130
# eslint for linting
131-
# - remove on Node.js < 6
132-
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 6 ]]; then
131+
# - remove on Node.js < 10
132+
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
133133
node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
134134
grep -E '^eslint(-|$)' | \
135135
sort -r | \

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"after": "0.8.2",
2424
"cookie-parser": "1.4.5",
25-
"eslint": "3.19.0",
25+
"eslint": "7.26.0",
2626
"eslint-plugin-markdown": "1.0.2",
2727
"express": "4.17.1",
2828
"mocha": "8.4.0",

test/session.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,8 @@ describe('session()', function(){
622622
before(function () {
623623
function setup (req) {
624624
req.secure = req.headers['x-secure']
625-
? JSON.parse(req.headers['x-secure'])
626-
: undefined
625+
? JSON.parse(req.headers['x-secure'])
626+
: undefined
627627
}
628628

629629
function respond (req, res) {
@@ -655,8 +655,8 @@ describe('session()', function(){
655655
before(function () {
656656
function setup (req) {
657657
req.secure = req.headers['x-secure']
658-
? JSON.parse(req.headers['x-secure'])
659-
: undefined
658+
? JSON.parse(req.headers['x-secure'])
659+
: undefined
660660
}
661661

662662
function respond (req, res) {

0 commit comments

Comments
 (0)