Skip to content

Commit

Permalink
build: eslint@7.26.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed May 19, 2021
1 parent a2577b1 commit ff9d938
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ root: true
rules:
eol-last: error
eqeqeq: ["error", "always", { "null": "ignore" }]
indent: ["error", 2, { "SwitchCase": 1 }]
indent: ["error", 2, { "MemberExpression": "off", "SwitchCase": 1 }]
no-mixed-spaces-and-tabs: error
no-trailing-spaces: error
one-var: ["error", { "initialized": "never" }]
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
shell: bash
run: |
# eslint for linting
# - remove on Node.js < 6
# - remove on Node.js < 10
if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 6 ]]; then
node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \
grep -E '^eslint(-|$)' | \
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"after": "0.8.2",
"cookie-parser": "1.4.5",
"eslint": "3.19.0",
"eslint": "7.26.0",
"eslint-plugin-markdown": "1.0.2",
"express": "4.17.1",
"mocha": "8.4.0",
Expand Down
8 changes: 4 additions & 4 deletions test/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ describe('session()', function(){
before(function () {
function setup (req) {
req.secure = req.headers['x-secure']
? JSON.parse(req.headers['x-secure'])
: undefined
? JSON.parse(req.headers['x-secure'])
: undefined
}

function respond (req, res) {
Expand Down Expand Up @@ -655,8 +655,8 @@ describe('session()', function(){
before(function () {
function setup (req) {
req.secure = req.headers['x-secure']
? JSON.parse(req.headers['x-secure'])
: undefined
? JSON.parse(req.headers['x-secure'])
: undefined
}

function respond (req, res) {
Expand Down

0 comments on commit ff9d938

Please sign in to comment.