Skip to content

Commit

Permalink
馃殤 Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dominiklessel committed Jan 28, 2019
1 parent d50e206 commit 1a6a9ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Expand Up @@ -4,6 +4,9 @@ env:
node: true
es6: true

parserOptions:
ecmaVersion: 8

extends:
"eslint:recommended"

Expand Down
2 changes: 1 addition & 1 deletion examples/hapi/src/plugins.js
Expand Up @@ -2,7 +2,7 @@
const serverlessPlugin = {
name: 'Serverless Plugin',
version: '1.0.0',
register: async (server, options) => {
register: async (server) => {
server.ext('onRequest', (request, h) => {
try {
request.serverless = request.raw.req.serverless
Expand Down
4 changes: 2 additions & 2 deletions examples/hapi/src/routes/base.js
Expand Up @@ -4,10 +4,10 @@ module.exports = [
method: 'GET',
path: '/',
handler: (request, h) => {
return {
return h.response({
msg: 'Hello, world!',
serverless: request.serverless
}
})
}
}
]

0 comments on commit 1a6a9ff

Please sign in to comment.